Constructs a new MIDI sequence with the specified timing division
type, timing resolution, and number of tracks.
Constructs a new MIDI sequence with the specified timing division
type, timing resolution, and number of tracks. The division type must be one of the
recognized MIDI timing types. For tempo-based timing,
divisionType
is PPQ (pulses per quarter note) and
the resolution is specified in ticks per beat. For SMTPE timing,
divisionType
specifies the number of frames per
second and the resolution is specified in ticks per frame.
The sequence will be initialized with the number of tracks specified by
numTracks
. These tracks are initially empty (i.e.
they contain only the meta-event End of Track).
The tracks may be retrieved for editing using the
Sequence.getTracks()
method. Additional tracks may be added, or existing tracks removed,
using
Sequence.createTrack()
and
Sequence.deleteTrack(javax.sound.midi.Track)
.
Parameters:
-
divisionType - the timing division type (PPQ or one of the SMPTE types)
-
resolution - the timing resolution
-
numTracks - the initial number of tracks in the sequence.
Throws:
-
InvalidMidiDataException - if
divisionType
is not valid
See Also:
Sequence.PPQ
,
Sequence.SMPTE_24
,
Sequence.SMPTE_25
,
Sequence.SMPTE_30DROP
,
Sequence.SMPTE_30
,
Sequence.getDivisionType()
,
Sequence.getResolution()
,