Custom message value

Accueil Forums Scripts Custom message value

2 sujets de 1 à 2 (sur un total de 2)
  • Auteur
    Messages
  • #5666 Répondre
    BobLePonge
    Invité

    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 Répondre
    IanniX
    Maître des clés

    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.

2 sujets de 1 à 2 (sur un total de 2)
Répondre à : Répondre #5667 dans Custom message value
Vos informations :





© IanniX Association

Qu'est-ce que IanniX ? | Téléchargement | Showcase | Forum | Recherche | À propos