* @param synths The number of the MidiSynths to use - default is 1.
*/
public static void midi(Score score, boolean exit, boolean wait, int synths, int decayAllowance) {
System.out.println("jMusic Play: Playing score " + score.getTitle() + " using JavaSound General MIDI soundbank.");
msFill(synths); // add instances of MidSynths if required
MidiSynth currentMidiSynth = (MidiSynth) ms.elementAt(msCnt);
if (currentMidiSynth.isPlaying()) currentMidiSynth.stop();
try {
currentMidiSynth.play(score);
if (wait) {
System.out.println("jMusic Play: Waiting for the end of " + score.getTitle() + ".");
if (exit && decayAllowance == 0) { // allow reverb trail to end
waitCycle(score, 200);
} else waitCycle(score, decayAllowance);