Skip to main content
Topic: pause in looped MIDI (Read 3444 times) previous topic - next topic

pause in looped MIDI

If I use NWC to create a two-bar piece of music, export it to MIDI, and then use it in a web page with this code

<embed src="abc.mid" autostart="true" loop="true">

the playback is looped, but there is a noticeable pause between each repetition. Does anyone know how to get rid of this so that the pulse continues smoothly during the playback?

thanks,

Bob
bob @
snee.com

Re: pause in looped MIDI

Reply #1
A midi file has to be 'compiled' or reorganized from tracks to a continuous sequence before playback.
That is probably the cause of your delay.

Since it's only a few bars why not put a local repeat with a large number of repeats and leave out the HTML loop.
If you need a REALLY large number of repeats you can cut and paste the local repeat several times in sequence.

If you leave the loop in there will be a pause for 'compile' everytime the file ends and restarts.

Re: pause in looped MIDI

Reply #2
It is also not uncommon for the "start of play back" sequence to have a slight delay at the beginning. This may also be the cause of the delay, since even though you have specified loop play, the sequencer started by the browser probably still goes through its startup routine before the start of each new loop. One reason to do this is to let the device have time to change to the instrument assignments that usually appear at the start of a MIDI file sequence.

Barry's advice is probably your best bet: increase the size of your loop, thus reducing the frequency of your loop. Depending on its complexity, the file should still be relatively small.

 

Re: pause in looped MIDI

Reply #3
Thanks very much!

Bob