101 * @see #SMPTE_24
102 * @see #SMPTE_25
103 * @see #SMPTE_30DROP
104 * @see #SMPTE_30
105 * @see #getDivisionType
106 */
107 protected float divisionType;
108
109 /**
110 * The timing resolution of the sequence.
111 *
112 * @see #getResolution
113 */
114 protected int resolution;
115
116 /**
117 * The MIDI tracks in this sequence.
118 *
119 * @see #getTracks
120 */
121 protected Vector<Track> tracks = new Vector<Track>();
122
123 /**
124 * Constructs a new MIDI sequence with the specified timing division type
125 * and timing resolution. The division type must be one of the recognized
126 * MIDI timing types. For tempo-based timing, {@code divisionType} is PPQ
127 * (pulses per quarter note) and the resolution is specified in ticks per
128 * beat. For SMTPE timing, {@code divisionType} specifies the number of
129 * frames per second and the resolution is specified in ticks per frame. The
130 * sequence will contain no initial tracks. Tracks may be added to or
131 * removed from the sequence using {@link #createTrack} and
132 * {@link #deleteTrack}.
133 *
134 * @param divisionType the timing division type (PPQ or one of the SMPTE
135 * types)
136 * @param resolution the timing resolution
137 * @throws InvalidMidiDataException if {@code divisionType} is not valid
138 * @see #PPQ
139 * @see #SMPTE_24
140 * @see #SMPTE_25
141 * @see #SMPTE_30DROP
|
101 * @see #SMPTE_24
102 * @see #SMPTE_25
103 * @see #SMPTE_30DROP
104 * @see #SMPTE_30
105 * @see #getDivisionType
106 */
107 protected float divisionType;
108
109 /**
110 * The timing resolution of the sequence.
111 *
112 * @see #getResolution
113 */
114 protected int resolution;
115
116 /**
117 * The MIDI tracks in this sequence.
118 *
119 * @see #getTracks
120 */
121 protected Vector<Track> tracks = new Vector<>();
122
123 /**
124 * Constructs a new MIDI sequence with the specified timing division type
125 * and timing resolution. The division type must be one of the recognized
126 * MIDI timing types. For tempo-based timing, {@code divisionType} is PPQ
127 * (pulses per quarter note) and the resolution is specified in ticks per
128 * beat. For SMTPE timing, {@code divisionType} specifies the number of
129 * frames per second and the resolution is specified in ticks per frame. The
130 * sequence will contain no initial tracks. Tracks may be added to or
131 * removed from the sequence using {@link #createTrack} and
132 * {@link #deleteTrack}.
133 *
134 * @param divisionType the timing division type (PPQ or one of the SMPTE
135 * types)
136 * @param resolution the timing resolution
137 * @throws InvalidMidiDataException if {@code divisionType} is not valid
138 * @see #PPQ
139 * @see #SMPTE_24
140 * @see #SMPTE_25
141 * @see #SMPTE_30DROP
|