cursor_time_percent example

Accueil Forums Scripts cursor_time_percent example

3 sujets de 1 à 3 (sur un total de 3)
  • Auteur
    Messages
  • #2312 Répondre
    Anonyme
    Inactif

    Hi.
    I want to send a osc messege when a one of many cursors is at the 70 percent of the curve.

    I find the cursor_time_percent value , but I can’t figure out how to make de if statement.

    Can you give me a simple example.

    Thank´s

    Andrés

    #2901 Répondre
    Anonyme
    Inactif

    Hi,

    You can make an if statement by using this syntax (not easy to read, I agree…). Just replace a standards argument of IanniX message by:

     { (cursor_time_percent > 70)?(cursor_xPos):('suppress') } 

    This example will send cursor x position when time percent is greater that 70%.

    #2902 Répondre
    IanniX
    Maître des clés

    Hi Guillaume!!

    I couldn’t figure out that by myself!!!

    By the way, I changed the 70 for a 0.7 to get it working…

    { (cursor_time_percent > 0.7)?(cursor_xPos):(‘suppress’) }

    Thank´s

    Andrés

3 sujets de 1 à 3 (sur un total de 3)
Répondre à : cursor_time_percent example
Vos informations :





© IanniX Association

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