Page 1 of 1

switching between 2 running midi sequences

Posted: Sun Oct 19, 2014 8:42 pm
by kortezzzz
Hi,
Having some problems with switching between 2 midi sequences that run at the same time. So far, no success to switch between them with a simple green selector without
Ending up with stuck notes, pops and clicks. So maybe ruby got the answer? The challenge is to make a smooth and deccent switch that will completely block the switched sequence durring the switch and on the other hand, will smoothly combine the second sequence. Tried so far every possible ruby "if then" i got in my tool box, but couldn't figure it out. Any ideas?

Re: switching between 2 running midi sequences

Posted: Sun Oct 19, 2014 8:52 pm
by KG_is_back
Your problem might be, that when you switch off a section, notes get stuck because they don't receive note off massage anymore. To fix this problem you need to "kill" all currently playing notes by sending respective "note off" massages.

Re: switching between 2 running midi sequences

Posted: Sun Oct 19, 2014 9:32 pm
by kortezzzz
Thanks for the fast respond, KG. what is the easiest (yet reliable) way to kill the notes? should I use midi splitting\event combination and and just disconnect it's triggers on switching, or there might be a much elegant and naughty ruby trick for that?...

Re: switching between 2 running midi sequences

Posted: Sun Oct 19, 2014 9:43 pm
by KG_is_back
YOu may create a ruby module, that will detect note on massages and store their pitches into array and remove the pitches form array on note off massages. then when it receives trigger to switch, it will produce "note off" massages for all pitches that are currently in the array (which means they are on at the moment).

Re: switching between 2 running midi sequences

Posted: Sun Oct 19, 2014 9:47 pm
by kortezzzz
Thanks, I'll try that :)