API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.sound.midi. Sequence View Source
Author(s)
Kara Kytle
Since
Version
1.28, 05/11/17
Serial
Hierarchy
 Object
      Sequence
Implements
Subclasses
Description
public class Sequence
  A Sequence is a data structure containing musical information (often an entire song or composition) that can be played back by a Sequencer object.
Constructors
public Sequence (float divisionType, int resolution) throws InvalidMidiDataException
  Constructs a new MIDI sequence with the specified timing division type and timing resolution.
public Sequence (float divisionType, int resolution, int numTracks) throws InvalidMidiDataException
  Constructs a new MIDI sequence with the specified timing division type, timing resolution, and number of tracks.
Methods
Hide/Show inherited methods
public Track createTrack ()
  Creates a new, initially empty track as part of this sequence.
public boolean deleteTrack (Track track)
  Removes the specified track from the sequence.
public float getDivisionType ()
  Obtains the timing division type for this sequence.
public long getMicrosecondLength ()
  Obtains the duration of this sequence, expressed in microseconds.
public Patch getPatchList ()
  Obtains a list of patches referenced in this sequence.
public int getResolution ()
  Obtains the timing resolution for this sequence.
public long getTickLength ()
  Obtains the duration of this sequence, expressed in MIDI ticks.
public Track getTracks ()
  Obtains an array containing all the tracks in this sequence.
Fields
Hide/Show inherited fields
protected float divisionType
  The timing division type of the sequence.
publicfinalstatic float PPQ = "0.0"
  The tempo-based timing type, for which the resolution is expressed in pulses (ticks) per quarter note.
protected int resolution
  The timing resolution of the sequence.
publicfinalstatic float SMPTE_24 = "24.0"
  The SMPTE-based timing type with 24 frames per second (resolution is expressed in ticks per frame).
publicfinalstatic float SMPTE_25 = "25.0"
  The SMPTE-based timing type with 25 frames per second (resolution is expressed in ticks per frame).
publicfinalstatic float SMPTE_30 = "30.0"
  The SMPTE-based timing type with 30 frames per second (resolution is expressed in ticks per frame).
publicfinalstatic float SMPTE_30DROP = "29.97"
  The SMPTE-based timing type with 29.97 frames per second (resolution is expressed in ticks per frame).
protected Vector<Track> tracks
  The MIDI tracks in this sequence.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar