oscP5 - oscEvent OscMessage
in
Contributed Library Questions
•
3 years ago
i want to set a incomming value like "theOscMessage.get(0).floatValue()" to an existing value.
a error message "Cannot find anything named "value-name"
here is my code
- float position; // value for function
- /* incoming osc message are forwarded to the oscEvent method. */
- void oscEvent(OscMessage theOscMessage) {
- // check if theOscMessage has the address pattern we are looking for.
- if(theOscMessage.checkAddrPattern("/FADER 1") == true) {
- // check if the typetag is the right one.
- if(theOscMessage.checkTypetag("f")) {
- float OSCvalue = theOscMessage.get(0).floatValue(); // get the second osc argument
- println(" values: "+OSCvalue);
- position = OSCvalue;
- return;
- }
- }
- }
what is wrong with the value?
1