def valueChange(channel, sampleIndex, val, prev):
# Access the Composite TOP
comp_top = op('Composite_text')
# Randomly decide to bypass or not with a higher probability of not bypassing
if random.random() > 0.25: # 75% chance to not bypass, 25% chance to bypass
# You can leave these as placeholders since we are only using valueChange
def onOffToOn(channel, sampleIndex, val, prev):
def whileOn(channel, sampleIndex, val, prev):
def onOnToOff(channel, sampleIndex, val, prev):
def whileOff(channel, sampleIndex, val, prev):