Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

switching between 2 running midi sequences

For general discussion related FlowStone

switching between 2 running midi sequences

Postby kortezzzz » Sun Oct 19, 2014 8:42 pm

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

Re: switching between 2 running midi sequences

Postby KG_is_back » Sun Oct 19, 2014 8:52 pm

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

Re: switching between 2 running midi sequences

Postby kortezzzz » Sun Oct 19, 2014 9:32 pm

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

Re: switching between 2 running midi sequences

Postby KG_is_back » Sun Oct 19, 2014 9:43 pm

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

Re: switching between 2 running midi sequences

Postby kortezzzz » Sun Oct 19, 2014 9:47 pm

Thanks, I'll try that :)
User avatar
kortezzzz
 
Posts: 763
Joined: Tue Mar 19, 2013 4:21 pm


Return to General

Who is online

Users browsing this forum: No registered users and 105 guests