NoteWorthy Composer Forum

Forums => General Discussion => Topic started by: Bob DuCharme on 2000-02-10 05:00 AM

Title: pause in looped MIDI
Post by: Bob DuCharme on 2000-02-10 05:00 AM
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
Title: Re: pause in looped MIDI
Post by: Barry Graham on 2000-02-11 05:00 AM
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.
Title: Re: pause in looped MIDI
Post by: NoteWorthy Online on 2000-02-11 05:00 AM
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.
Title: Re: pause in looped MIDI
Post by: Bob DuCharme on 2000-02-11 05:00 AM
Thanks very much!

Bob