Accueil › Forums › Créer avec IanniX › Fixed midi channel for a cursor
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?
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!
Thank you very much! in-message JavaScript syntax was exactly what I needed. Is there somewhere I can read more about this?
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.
© IanniX Association
Qu'est-ce que IanniX ? | Téléchargement | Showcase | Forum | Recherche | À propos
Cookie | Durée | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |