Troubleshooting

message osc problem with function firstof

Started by Saint_T on .

Sign in or create an account to join the conversation.

7 posts

Topic starter
Hello, I have a problem with an osc message.
I have a raw of four switches and a monitor that shows me the number of the switch by creating the function z = firstof (x). When I press each switch, the monitor displays Good the value of the variable z : 0 1 2 3, but MaxMSP via osc message /switch/z always shows me the value 0 whichever the switch pressed.
I do not understand why ?
Is there a solution.
thank you
hi

I have the same problem ! on Max too. but it's not only with firstof but also with round() (I have just try this two expression) and when I pass inside a script !!!
I used Ipad1 with ios5.1.1 on mac with OSX 10.7.5

if you have suggest !!!
Thanks & best
o-o
hi

If I show values on Lemur with monitor object, all is OK. It's on sending/transmitting via OSC where the message is corrupt. I haven't try if it's the same with Midi…
Are there a problem with older iPad Version or iOS or stuff like that ? Any other Have same problem ? This problem appear on recently iPad version or not ???

I hope this problem can solve soon !
best
f
Hey Saint_T,

another solution to achive "firstof" would be using "zl sub 1." in max (while sending the whole vector of knobs "Tralala/x" from lemur to max)
That way the variable calculation is in max. Thats the way I do, never tried calculating firstof on lemur and sending it to max... but in common your way seems possible too...

hope that helps
mat
The following is broken in 5.0 and will be fixed in the 5.0.2 update:
- Fixed OSC output of integer variables
- Fixed OSC remote control of object attribute

The firstof(x) problem you describe sounds like a case of the first bug.