Skip to main content

When exporting MIDI files

Posted

When SFP exports a MIDI file, it would be much more helpful, if it staggered the commands. Having 16 instruments output CC and program commands on beat 1 does not work.. Most hardware can deal with a handful of events on the same clock count.. but not dozens and dozens, hence you end up with wrong patchs.. Also ideally the program setups whould be done in measure Zero.   

 

To be ideal each channel would output  events on 0:1:1, 0:1:2, 0:1:3, 0:1:4,  the next track would be something like 0:1:20, O;1;21, 0;1;22.  etc.. This allows plenty of time for external hardware to execute commands, and do any internal housekeeping it needs to do..

 

Just like in a Panic reset button,  Note offs are sent to each MIDI channel, one at a time in consecutive clock count, so there is never two events happening on same clock.  

 

I have to rework SFP midi output, to stagger the setup commands, otherwise Tyros has some wrong patchs.. Tyros is pretty much in the middle of the hardware instruments as respect to accepting and processing MIDI commands. Other hardware instruments are going to have a worse time.. Indeed I have to stagger timeing of midi tracks to different synths, to get them all exactly to hit precisely on the beat, (each instrument has a different processing time due to CPU and design of software. 

 

Thanx..


Sun, 2012-10-14 - 14:12 Permalink

I've done some experiments with this the other day, but for it to work, you must keep 1 measure room at the beginning of a midi file.

each instrument has a different processing time due to CPU and design of software

The hardware should keep the received messages in a buffer and process them later, one by one, at the speed it deems appropriate. If you leave enough room before the first music starts, this should work.