I have the following code. I am sending, via network and OSC protocol, the values 0 and 1. My goal is that when the value 1 is received, trigger the green bang and start playing the wav file. When 0 is received, trigger the red bang and terminate execution.
How to do this?
-
How to use conditional 'if' to start and pause the execution of a file?
-
Branching objects in Pd are primarily:
- [select] to pass through bangs (this one suits your case)
- [route] to pass through messages
- [moses] to split numbers into < or > paths
You can do what you need here with [select].
hjh