range of values to control parameters thru OSC
  • generalh
    member
    Posts: 16
    Joined: Wed Nov 14, 2012 11:41 pm

    range of values to control parameters thru OSC

    by generalh » Tue May 27, 2014 10:55 pm

    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
  • generalh
    member
    Posts: 16
    Joined: Wed Nov 14, 2012 11:41 pm

    Re: range of values to control parameters thru OSC

    by generalh » Sat May 31, 2014 4:06 pm

    Anybody at home????
  • mad-matt
    garageCube team
    Posts: 1475
    Joined: Mon Sep 09, 2013 5:50 pm

    Re: range of values to control parameters thru OSC

    by mad-matt » Wed Jun 04, 2014 2:51 pm

    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

Who is online

Users browsing this forum: No registered users and 12 guests