How to send a Bang or Button message to a Pi
Hi . .
See the test patch attached. I am trying to figure out the best way to send a bang or button press to a RNBO patch via OSC on the Pi. I have a param named B1 which gets a value of 0 or 1 depending on a button press. Press the button, get a 1. Otherwise, 0. I have a select 1 attached to the param output in the RNBO patch but it never will bang. I've tried a trigger bang, just sending a 1, etc . . no dice. I can see the Param B1 in the Web interface and see it change from 0 to 1 when a button is pressed. It just never gets into the patch to, in this example, to bang a random object. The values on the right side of the web slider change the but the slider graphic doesn't move. And, if I use the web slider for b1 to scroll from 0 to 1 it changes the sound. So i must be missing something about direct parameter values in rnbo?
It works fine when testing on the Mac laptop with a prepend and a 0 or 1 value going into the rnbo object.
Should I be using the enumeration part of the param object to do this?
Right now I have /rnbo/inst/0/params/b1/ as the OSC message. Values are 0 or 1. They are floats.
Anyway, just sorting out the best way to send button presses to RNBO via OSC on the Pi.
Thanks!!
Changing the Osc message to use the normalized option did the trick!
/rnbo/inst/0/params/b1/normalized
Never mind! All is well in max land now
You should also be able to send an OSC message without any arguments:
/rnbo/inst/0/params/b1
Yes that is correct. I had an issue in my Python code and it was sending strings instead of a floats.