Hello guys. I'm trying to play Csound instrument using on/off buttons connected to the digital inputs on Bela. The example in IDE turns the sound on by default and then you can turn it of with the button. But I need it to be the other way around and to trigger the envelope of my instrument, so every time I hit the button, the sound plays from the beginning. @csounder ?
I inverted the push button this way: "kSwitch = (1 - kSwitch)". But can't figure how to trigger an envelope.