# me - this DAT
# 
# channel - the Channel object which has changed
# sampleIndex - the index of the changed sample
# val - the numeric value of the changed sample
# prev - the previous sample value
# 
# Make sure the corresponding toggle is enabled in the CHOP Execute DAT.

def onOffToOn(channel, sampleIndex, val, prev):
	chooseOption = ui.messageBox('Add Files', 'Add a single file or all from folder', buttons=['Add whole folder', 'Add single file', 'cancel'])
	if chooseOption == 0:
		parent().LoadFolder();
	elif chooseOption == 1:
		parent().LoadSingle();
	return

def whileOn(channel, sampleIndex, val, prev):
	return

def onOnToOff(channel, sampleIndex, val, prev):
	return

def whileOff(channel, sampleIndex, val, prev):
	return

def onValueChange(channel, sampleIndex, val, prev):
	return
	