scripting a pad with a blinking "on" state [SOLVED]
Posted: 03 Apr 2017 22:00
Hey Guys,
I'm trying to script a pad to be blinking on and off while "on" and switching to a darker colour when off. I created an expression for the blink which works great if I plug it into the "light=" properties-
blink=sin(time*3)/3+.1+.1
I can use the script below to toggle a pad's light bright and dark -
on expression x rising-
if (!light) light=.8;
else light = 0;
... but the pad is either lit up when on or dark when off. I'm looking for a flashing "on" signal kinda thing. I specifically need to use a pad not a switch. Any help appreciated.
I'm trying to script a pad to be blinking on and off while "on" and switching to a darker colour when off. I created an expression for the blink which works great if I plug it into the "light=" properties-
blink=sin(time*3)/3+.1+.1
I can use the script below to toggle a pad's light bright and dark -
on expression x rising-
if (!light) light=.8;
else light = 0;
... but the pad is either lit up when on or dark when off. I'm looking for a flashing "on" signal kinda thing. I specifically need to use a pad not a switch. Any help appreciated.