LEDs are always on

Official support for: loomer.co.uk
jcgam
KVRist
58 posts since 5 Jan, 2019

Post Sat Aug 17, 2019 3:25 pm

I would like the LEDs in this simple example to light only when a signal is received, but they stay on and never go off.  What's the solution?
0yhk3Nl.png
You do not have the required permissions to view the files attached to this post.

colin@loomer
KVRAF
1765 posts since 25 Aug, 2003 from Bournemouth, UK

Re: LEDs are always on

Post Sun Aug 18, 2019 1:03 am

The LED modules respond to boolean values. A `true` will turn it on, and a `false` will turn it off. As `signal`s are truthy, they are automatically coerced into `true` values.

So what you probably want to do is use a [data wait] module to send a `false` a short while after the LED receives the `true`. Something like this:

Image
Architect, the modular MIDI toolkit, beta now available for macOS, Windows, and Linux.

jcgam
KVRist
58 posts since 5 Jan, 2019

Re: LEDs are always on

Post Sun Aug 18, 2019 5:43 pm

This worked perfectly, thank you.

Return to “Loomer”