Custom message value

Home Forums Scripts Custom message value

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5666 Reply
    BobLePonge
    Guest

    Hello,

    I would like to know what would be the best way to apply a mathematical formula to a Iannix built-in value.

    For instance like below, take the absolute value of the cursor x value :
    run(“setMessage current 1, osc://ip_out:port_out/cursor abs(cursor_value_x) , “)
    (of course it doesn’tt work)

    What would be the best workaround ?

    Thanks for your help !
    B

    #5667 Reply
    IanniX
    Keymaster

    Hi Bob 🙂
    You were close to the solution; just add some curly brackets { … }:
    osc://ip_out:port_out/cursor {abs(cursor_value_x)}

    For info, you can type any JavaScript you want inside (it should obviously return a numeric value).

    Best,
    Guillaume.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Custom message value
Your information:





© IanniX Association

What is IanniX? | Download | Showcase | Forums | Research | About