Fixed midi channel for a cursor

Home Forums Making things with IanniX Fixed midi channel for a cursor

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5538 Reply
    TomW
    Guest

    Hi, I’m new to Iannix and I was wondering if there was a way to make a cursor represent a specific midi channel? The idea being that each trigger then outputs its assigned note value on the channel of the cursor that intersects with it. I initially thought that I could compose my message using something like the group id midi://midi_out/note cursor_group_id 60 120 trigger_duration but this does not work because the group id is a string and the output is therefore not rendered correctly, what I see is midi://from_iannix/note 120 (C9) 120 1. The only way I could see to do this was to use the cursor_id which is an int, but this is impractical as you cant have more than 1 playhead per channel, or to remap one of the x,y,z co-ordinates to a fixed value, but this means losing a dimension of expression. Is there something obvious that I’m missing here?

    #5539 Reply
    IanniX
    Keymaster

    Hi!

    One trick would be to use the 3rd dimension (z) but it might complexify your score.

    I
    But I n fact, your can convert your string parameter into integer by using the in-message JavaScript syntax.
    {parseFloat(cursor_group_id)} instead of cursor_group_id It should work!

    #5540 Reply
    TomW
    Guest

    Thank you very much! in-message JavaScript syntax was exactly what I needed. Is there somewhere I can read more about this?

    #5541 Reply
    IanniX
    Keymaster

    I don’t think there is documentation on this here https://github.com/buzzinglight/IanniX/wiki
    But you can use any Javascript syntax with all the IanniX variables in the message, like {cursor_x * cursor_y + cos(cursor_z)} for example.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Fixed midi channel for a cursor
Your information:





© IanniX Association

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