Page 1 of 1

range of values to control parameters thru OSC

Posted: Tue May 27, 2014 10:55 pm
by generalh
hello madmappies,
i'm wandering the strange range if values
sending thru osc /surfaces/TEST/opacity 0 gives 16% so what's the math link between??
0 seems to be somewhere at -0,421 and 100% at 2,541
What's the secret formula from float to modulo??
Thank you
H

Re: range of values to control parameters thru OSC

Posted: Sat May 31, 2014 4:06 pm
by generalh
Anybody at home????

Re: range of values to control parameters thru OSC

Posted: Wed Jun 04, 2014 2:51 pm
by mad-matt
Hi,
By default, the range of an Osc channel in MM is from 0 to 1. If we receive a value outside that range, we adapt the range and we remember that. When you assign an Osc address to a parameter in MM (ie "/Surfaces/Surface 1/Opacity"), whenever MM receives a value, it will normalize it and send it to the target parameter.
So if you get 17% when sending 0, it means that you sent a negative value at least once on that address.
Maybe it would be better to hardcode the range of a float parameter between 0-1. Most OSC apps are only sending 0-1 values. What are you using to send Osc ?
Regards
Matthieu - MM team