cursor_time_percent example

Home Forums Scripts cursor_time_percent example

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2312 Reply
    Anonymous
    Inactive

    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 Reply
    Anonymous
    Inactive

    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 Reply
    IanniX
    Keymaster

    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

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: cursor_time_percent example
Your information:





© IanniX Association

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