Create curves from Processing to Iannix

Home Forums Making things with IanniX Create curves from Processing to Iannix

This topic contains 12 replies, has 2 voices, and was last updated by  Angel Sánchez Borges 5 months, 2 weeks ago.

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
  • #3534 Reply

    Angel Sanchez

    Hi there !

    How can I draw a line in Processing that generates a curve in Iannix thru OSC ?

    Thanks !

    #3536 Reply


    Yes, open the Helper window in IanniX and add a curve and move points to see the messages you have to send!

    #3558 Reply

    Angel Sanchez Borges

    Now I understand how to add and object with OSC, but can´t find how to use the second parameter to add a curve or a cursor in Processing, all the time any number I put is a trigger…

    iannix.send(“add”, ?,”id#”);

    Please help

    #3559 Reply


    iannix.send(“add”, “curve, ”id#”);
    iannix.send(“add”, “trigger, ”id#”);
    iannix.send(“add”, “cursor, ”id#”);


    #3560 Reply

    Angel Sanchez Borges

    But Processing say that in the second parameter is expecting a float value not a string, and return an error, that´s why I thought they were represented by numbers, when I write any number it works but only triggers…what I’m missing here ?

    #3577 Reply


    Yes sorry I posted without testing before. In fact, you have to send OSC Messages using OSC P5. You can have some help in the

    OscMessage iannixMessage = new OscMessage("/iannix/add");
    oscManager.send(iannixMessage, iannixLocation);

    assuming oscManager and iannixLocation have been declared. See samples in IanniX class provided with the example.

    #3664 Reply

    Angel Sanchez Borges

    It´s working ! Here´s my code with a moving point:


    a = a + 1;

    float move1 = map(sin(a), -1, 1,-10,20);
    float move2 = map(cos(a), -1, 1,-3,13);

    iannix.send(“setpointat”, 0, 2, move1, move2 );

    if(key == ‘q’){

    OscMessage iannixMessage = new OscMessage(“/iannix/add”);

    oscManager.send(iannixMessage, iannixLocation);



    Now the question is: how can I choose to add a straight or a smooth curve ?

    : )

    Thanks !

    #3665 Reply


    It depends on the setPointAt arguments. In IanniX, open the Help panel and place manually a smooth curve in the score. You’ll see in the Help panel (scroll down) the exact syntax for Processing 🙂

    #5501 Reply

    Angel Sánchez Borges

    Three years later and I´m returning to this. Ok. Here’s my question:

    Processing creating a cursor on a curve:

    iannix.send(“setcurve”, 1, 0);
    iannix.send(“setpattern”, 1, 21, 0, 1, -1);

    Please, could you give me a practical example how should assign a MIDI message to this cursor based on this?

    iannix.send(“setmessage”, “selection”, “0,”, “midi://midi_out/ccf”, 1, 1, “cursor_value_x”);

    Thanks !

    #5505 Reply



    Your message is right… excepted the ‘selection’ which means you target the current selected object. You can replace this value with the ID of the object (you can see it in inspector), or ‘current’ which means the last targeted object.

    #5511 Reply

    Angel Sánchez Borges

    Ok, and what is the “0,” stand for ?

    #5513 Reply


    0 stands for 0ms, 0ms between the last sent message. If you put a bigger value — let’s say 10ms — IanniX will only send an OSC message if the previous trig of the trigger was more than 10ms before.

    #5518 Reply

    Angel Sánchez Borges

    I don´t know what I´m doing wrong but processing says not applicable method”:

    ¿Is “0,” expecting a float value?

    Sorry but I don´t get it 🙁

    Is it something like this?

    iannix.send(“setmessage”, 1, .2, “midi://midi_out/ccf”, 1, 1, “cursor_value_x”);

Viewing 13 posts - 1 through 13 (of 13 total)
Reply To: Create curves from Processing to Iannix
Your information:

© IanniX Association

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