I have a hRadio (width 2), a bang and two messages in my PD proyect. I want to save in a variable or similar a 0 or a 1 coming from the hRadio. Then, when I press the bang, I want to ask if that variable is a 0 or a 1. Each path will show a different message.
How could I do that?
Thanks!
-
Begginer issue
-
i'm not sure what you mean exactly, but you can store the output of the radio using the right inlet of
[f ]
, Then when you need that result you can send a bang to the left inlet. You can then use[sel 0 1]
to split the path and send a bang out of different outlets depending on the #. if you want to use that number to route some other message you might want to use[list prepend]
instead of[f ]
and[route 0 1]
instead of[sel]