Page 1 of 1
message osc problem with function firstof
Posted: 21 Mar 2014 07:23
by Saint_T
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
Re: message osc problem with function firstof
Posted: 21 Mar 2014 18:08
by oran-outan
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
Re: message osc problem with function firstof
Posted: 22 Mar 2014 14:23
by oran-outan
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
Re: message osc problem with function firstof
Posted: 22 Mar 2014 18:54
by mat
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
Re: message osc problem with function firstof
Posted: 24 Mar 2014 09:53
by oran-outan
hello
If I sent message via Midi, functions & sending run good… it's really on osc transmitting where the problem is.
best
f
Re: message osc problem with function firstof
Posted: 27 Mar 2014 11:27
by Saint_T
I found a solution with a script with the function oscout(). I disables x and the the script is
oscout(0, '/test',firstof(x)); with
on expression x. It's all ok.
Thank you to all.
Re: message osc problem with function firstof
Posted: 27 Mar 2014 14:21
by nick_liine
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.