Example usage for Java javax.sound.midi Sequencer fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
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. |
void | close() Closes the device, indicating that the device should now release any system resources it is using. |
long | getMicrosecondLength() Obtains the length of the current sequence, expressed in microseconds, or 0 if no sequence is set. |
long | getMicrosecondPosition() Obtains the current position in the sequence, expressed in microseconds. |
boolean | getTrackMute(int track) Obtains the current mute state for a track. |
Transmitter | getTransmitter() Obtains a MIDI OUT connection from which the MIDI device will transmit MIDI data. |
boolean | isRunning() Indicates whether the Sequencer is currently running. |
void | open() Opens the device, indicating that it should now acquire any system resources it requires and become operational. |
void | setSequence(Sequence sequence) Sets the current sequence on which the sequencer operates. |
void | setSequence(InputStream stream) Sets the current sequence on which the sequencer operates. |
void | setTempoInBPM(float bpm) Sets the tempo in beats per minute. |
void | setTrackMute(int track, boolean mute) Sets the mute state for a track. |
void | start() Starts playback of the MIDI data in the currently loaded sequence. |