I am attempting to write a MIDI file jukebox using Frans Bouwmans TMidiPlayer2 component. Currently I am using a "for" loop to iterate through a list of MIDI files contained in a string grid. The problem is that the program moves through the loop without waiting for each MIDI file to finish playing.
Am I using the right control loop for this task? If so, is there some way to pause the loop until each MIDI file has finished playing?
|