Java javax.sound.midi Sequencer fields, constructors, methods, implement or subclass

Example usage for Java javax.sound.midi Sequencer fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.sound.midi Sequencer.

The text is from its open source code.

Method

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.
booleanaddMetaEventListener(MetaEventListener listener)
Registers a meta-event listener to receive notification whenever a meta-event is encountered in the sequence and processed by the sequencer.
voidclose()
Closes the device, indicating that the device should now release any system resources it is using.
longgetMicrosecondLength()
Obtains the length of the current sequence, expressed in microseconds, or 0 if no sequence is set.
longgetMicrosecondPosition()
Obtains the current position in the sequence, expressed in microseconds.
booleangetTrackMute(int track)
Obtains the current mute state for a track.
TransmittergetTransmitter()
Obtains a MIDI OUT connection from which the MIDI device will transmit MIDI data.
booleanisRunning()
Indicates whether the Sequencer is currently running.
voidopen()
Opens the device, indicating that it should now acquire any system resources it requires and become operational.
voidsetSequence(Sequence sequence)
Sets the current sequence on which the sequencer operates.
voidsetSequence(InputStream stream)
Sets the current sequence on which the sequencer operates.
voidsetTempoInBPM(float bpm)
Sets the tempo in beats per minute.
voidsetTrackMute(int track, boolean mute)
Sets the mute state for a track.
voidstart()
Starts playback of the MIDI data in the currently loaded sequence.