|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.sound.midi.Sequence
public class Sequence
Objects of this type represent sequences of MIDI messages that can be played back by a Sequencer.
Field Summary | |
---|---|
protected float |
divisionType
The timing division type for this sequence (PPQ or SMPTE*) |
static float |
PPQ
Tempo-based timing. |
protected int |
resolution
The timing resolution in ticks/beat or ticks/frame, depending on the division type. |
static float |
SMPTE_24
24 frames/second timing. |
static float |
SMPTE_25
25 frames/second timing. |
static float |
SMPTE_30
30 frames/second timing. |
static float |
SMPTE_30DROP
29.97 frames/second timing. |
protected Vector<Track> |
tracks
The MIDI tracks used by this sequence. |
Constructor Summary | |
---|---|
Sequence(float divisionType,
int resolution)
Create a MIDI sequence object with no initial tracks. |
|
Sequence(float divisionType,
int resolution,
int numTracks)
Create a MIDI seqence object. |
Method Summary | |
---|---|
Track |
createTrack()
Create a new empty MIDI track and add it to this sequence. |
boolean |
deleteTrack(Track track)
Remove the specified MIDI track from this sequence. |
float |
getDivisionType()
The division type of this sequence. |
long |
getMicrosecondLength()
The length of this sequence in microseconds. |
Patch[] |
getPatchList()
Get an array of patches used in this sequence. |
int |
getResolution()
The timing resolution for this sequence, relative to the division type. |
long |
getTickLength()
The length of this sequence in MIDI ticks. |
Track[] |
getTracks()
Get an array of MIDI tracks used in this sequence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected float divisionType
protected int resolution
protected Vector<Track> tracks
public static final float PPQ
public static final float SMPTE_24
public static final float SMPTE_25
public static final float SMPTE_30
public static final float SMPTE_30DROP
Constructor Detail |
---|
public Sequence(float divisionType, int resolution) throws InvalidMidiDataException
divisionType
- the division type (must be one of PPQ or SMPTE_*)resolution
- the timing resolution
InvalidMidiDataException
- if the division type is invalidpublic Sequence(float divisionType, int resolution, int numTracks) throws InvalidMidiDataException
divisionType
- the division type (must be one of PPQ or SMPTE_*)resolution
- the timing resolutionnumTracks
- the number of initial tracks
InvalidMidiDataException
- if the division type is invalidMethod Detail |
---|
public float getDivisionType()
public int getResolution()
public Track createTrack()
public boolean deleteTrack(Track track)
track
- the track to remove
public Track[] getTracks()
public long getMicrosecondLength()
public long getTickLength()
public Patch[] getPatchList()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |