Starts playback of the MIDI data in the currently loaded sequence. Playback will begin from the current position. If the playback position reaches the loop end point, and the loop count is greater than 0, playback will resume at the loop start point for the number of repetitions set with
setLoopCount
. After that, or if the loop count is 0, playback will continue to play to the end of the sequence.
The implementation ensures that the synthesizer is brought to a consistent state when jumping to the loop start point by sending appropriate controllers, pitch bend, and program change events.
@throws IllegalStateException if the Sequencer
isclosed.
@see #setLoopStartPoint
@see #setLoopEndPoint
@see #setLoopCount
@see #stop