API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.sound.midi. Sequencer View Source
Author(s)
Kara Kytle
Florian Bomers
Since
Version
1.37, 05/11/17
Serial
Hierarchy
 MidiDevice
      Sequencer
Subinterfaces
Description
public interface Sequencer
  A hardware or software device that plays back a MIDI sequence is known as a sequencer.
Methods
Hide/Show inherited methods
public int addControllerEventListener (ControllerEventListener listener, int[] controllers)
  Registers a controller event listener to receive notification whenever the sequencer processes a control-change event of the requested type or types.
public boolean addMetaEventListener (MetaEventListener listener)
  Registers a meta-event listener to receive notification whenever a meta-event is encountered in the sequence and processed by the sequencer.
public int getLoopCount ()
  Obtains the number of repetitions for playback.
public long getLoopEndPoint ()
  Obtains the end position of the loop, in MIDI ticks.
public long getLoopStartPoint ()
  Obtains the start position of the loop, in MIDI ticks.
public SyncMode getMasterSyncMode ()
  Obtains the current master synchronization mode for this sequencer.
public SyncMode getMasterSyncModes ()
  Obtains the set of master synchronization modes supported by this sequencer.
public long getMicrosecondLength ()
  Obtains the length of the current sequence, expressed in microseconds, or 0 if no sequence is set.
public long getMicrosecondPosition () [Specified in MidiDevice]
  Obtains the current position in the sequence, expressed in microseconds.
public Sequence getSequence ()
  Obtains the sequence on which the Sequencer is currently operating.
public SyncMode getSlaveSyncMode ()
  Obtains the current slave synchronization mode for this sequencer.
public SyncMode getSlaveSyncModes ()
  Obtains the set of slave synchronization modes supported by the sequencer.
public float getTempoFactor ()
  Returns the current tempo factor for the sequencer.
public float getTempoInBPM ()
  Obtains the current tempo, expressed in beats per minute.
public float getTempoInMPQ ()
  Obtains the current tempo, expressed in microseconds per quarter note.
public long getTickLength ()
  Obtains the length of the current sequence, expressed in MIDI ticks, or 0 if no sequence is set.
public long getTickPosition ()
  Obtains the current position in the sequence, expressed in MIDI ticks.
public boolean getTrackMute (int track)
  Obtains the current mute state for a track.
public boolean getTrackSolo (int track)
  Obtains the current solo state for a track.
public boolean isRecording ()
  Indicates whether the Sequencer is currently recording.
public boolean isRunning ()
  Indicates whether the Sequencer is currently running.
public void recordDisable (Track track)
  Disables recording to the specified track.
public void recordEnable (Track track, int channel)
  Prepares the specified track for recording events received on a particular channel.
public int removeControllerEventListener (ControllerEventListener listener, int[] controllers)
  Removes a controller event listener's interest in one or more types of controller event.
public void removeMetaEventListener (MetaEventListener listener)
  Removes the specified meta-event listener from this sequencer's list of registered listeners, if in fact the listener is registered.
public void setLoopCount (int count)
  Sets the number of repetitions of the loop for playback.
public void setLoopEndPoint (long tick)
  Sets the last MIDI tick that will be played in the loop.
public void setLoopStartPoint (long tick)
  Sets the first MIDI tick that will be played in the loop.
public void setMasterSyncMode (SyncMode sync)
  Sets the source of timing information used by this sequencer.
public void setMicrosecondPosition (long microseconds)
  Sets the current position in the sequence, expressed in microseconds
public void setSequence (InputStream stream) throws IOException InvalidMidiDataException
  Sets the current sequence on which the sequencer operates.
public void setSequence (Sequence sequence) throws InvalidMidiDataException
  Sets the current sequence on which the sequencer operates.
public void setSlaveSyncMode (SyncMode sync)
  Sets the slave synchronization mode for the sequencer.
public void setTempoFactor (float factor)
  Scales the sequencer's actual playback tempo by the factor provided.
public void setTempoInBPM (float bpm)
  Sets the tempo in beats per minute.
public void setTempoInMPQ (float mpq)
  Sets the tempo in microseconds per quarter note.
public void setTickPosition (long tick)
  Sets the current sequencer position in MIDI ticks
public void setTrackMute (int track, boolean mute)
  Sets the mute state for a track.
public void setTrackSolo (int track, boolean solo)
  Sets the solo state for a track.
public void start ()
  Starts playback of the MIDI data in the currently loaded sequence.
public void startRecording ()
  Starts recording and playback of MIDI data.
public void stop ()
  Stops recording, if active, and playback of the currently loaded sequence, if any.
public void stopRecording ()
  Stops recording, if active.
Fields
Hide/Show inherited fields
publicfinalstatic int LOOP_CONTINUOUSLY = "-1"
  A value indicating that looping should continue indefinitely rather than complete after a specific number of loops.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar