first of all, I am completely new to SC so this might some kind stupid error. So apologies before hand.
I have build a guitar pedal which has switches and LEDs connected to BELA. The pedal works fine with PD patches but I am having strange behaviour with LEDs when using SC: The LED doesn't turn off each time when I give the value 0 to the DigitalOut Ugen. Instead it sort of dims a bit.
But LED works fine if I use trigger rate "t_" in front of the argument in the following way:
// Bela Leds
However, the work around is not working if I want the LED stay on because "t_" argument doesn't seem to have 0 and 1 but only 1. Which means every time trigger happens it either turns the LED on or off.
Anyone having the same issues happening or am I just doing something quite wrong in the code?