Re: Having to double tap switch to work
Posted: 13 Nov 2014 06:07
tonight I had another one of those switches to solve. It's only one parameter sent to and from the DAW. When sent (momentary, pad) the scrub control is engaged, but to disengage it needs the note sent two times. To engage only once.
So I set up an expression x inside the LED object (it's a Canvas object acting as LED, but it works also with the regular LEDs object). This x goes to 1 when the note command arrives from the DAW. Then there is a Pads object with a script sending the note command. This pad does not receive anything. If LED.x=1 the pad sends the note command a second time. And if LED.x=0 it sends the note command only once. Problem solved.
Maybe this may give some ideas.
So I set up an expression x inside the LED object (it's a Canvas object acting as LED, but it works also with the regular LEDs object). This x goes to 1 when the note command arrives from the DAW. Then there is a Pads object with a script sending the note command. This pad does not receive anything. If LED.x=1 the pad sends the note command a second time. And if LED.x=0 it sends the note command only once. Problem solved.
Maybe this may give some ideas.