[sdiy] MIDI merging info requested

Scott Juskiw scott at tellun.com
Tue May 10 16:41:24 CEST 2005


>Is there a simple algorithm for merging two midi messages?  I want 
>to be able to pass my keyboard MIDI data through my Bass Pedals to 
>my controller.
>
>It seems like with running status, sys events, and such, that you 
>really need to decode both MIDI streams to be able to merge complete 
>messages.
>
>Is there a simple way to do this?  Perhaps it is just decoding the 
>commands and deciding how many bytes to pass before looking at the 
>other MIDI stream.  Seems like if the other stream doesn't have a 
>complete command then you would hang.  Perhaps this is never a 
>problem.
>
>Would appreciate help and insight before I start writing code.
>
>http://modularsynthesis.com

There is no simple way to do this other than to have two stacks for 
storing bytes arriving from each source and then to pop bytes off the 
stack once you have a complete MIDI message on that stack. Running 
status is a pain, sysex is a bigger pain. Your time might be better 
off just getting one of these and retrofitting it into your rig:

http://www.midiman.net/products/en_us/Merge2x2-main.html




More information about the Synth-diy mailing list