switching between 2 running midi sequences

For general discussion related FlowStone
Post Reply
User avatar
kortezzzz
Posts: 763
Joined: Tue Mar 19, 2013 4:21 pm

switching between 2 running midi sequences

Post 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?
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: switching between 2 running midi sequences

Post 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.
User avatar
kortezzzz
Posts: 763
Joined: Tue Mar 19, 2013 4:21 pm

Re: switching between 2 running midi sequences

Post 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?...
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: switching between 2 running midi sequences

Post 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).
User avatar
kortezzzz
Posts: 763
Joined: Tue Mar 19, 2013 4:21 pm

Re: switching between 2 running midi sequences

Post by kortezzzz »

Thanks, I'll try that :)
Post Reply