Hi All !
I have a sound that i want to trig.
I have read in the help, when a condition is false it’s equal to 0 and true equal to 1.
I have done that on a gate and it works to trig an envelope but for trig a buffer it not works i mean the sound is always triged in loop and never stop.
I have an SynthDef:
I’m assuming you want to play the buffer in its entirety when your right hand dips below -0.8, and then wait until the right hand goes above -0.8, then trigger again when it dips below… in that case you don’t actually need a trigger in your SynthDef but rather to keep track of the incoming OSC values and start a new Synth every time they pass the threshold in the desired direction… something like this should work:
BTW, it’s good practice to always pass the buffer number into your synth instead of relying on it always being a certain buffer number, helps avoid bugs later.