| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private class | RealTimeSequencer.
class that does the actual dispatching of events, used to be in native in MMAPI. |
| pack-priv class | |
| private static class | |
| pack-priv static class | |
| pack-priv class | |
| private class | RealTimeSequencer.
An own class to distinguish the class name from the transmitter of other devices. |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | autoConnect
automatic connection support. |
| pack-priv Receiver | autoConnectedReceiver
the receiver that this device is auto-connected to. |
| private float | cacheTempoFactor
cache value for tempo factor until sequence is set -1 means not set. |
| private double | cacheTempoMPQ
Same for setTempoInMPQ... |
| private final ArrayList | controllerEventListeners
Control change listeners. |
| private static final Map | dispatchers
Event Dispatcher thread. |
| private boolean | doAutoConnectAtNextOpen
if we need to autoconnect at next open. |
| pack-priv static final MidiDevice. | info
All RealTimeSequencers share this info object.
|
| private int | |
| private long | |
| private long | |
| private static final Sequencer. | |
| private static final Sequencer. | |
| private final ArrayList | metaEventListeners
Meta event listeners. |
| private RealTimeSequencer. | playThread
the thread for pushing out the MIDI messages. |
| private volatile boolean | recording
True if we are recording. |
| private final List | recordingTracks
List of tracks to which we're recording. |
| private volatile boolean | running
True if the sequence is running. |
| private Sequence | sequence
Sequence on which this sequencer is operating. |
| private static final Sequencer. | |
| private static final Sequencer. | |
| private final MidiUtils. | tempoCache
tempo cache for getMicrosecondPosition |
| private boolean[] | trackMuted
if a particular track is muted |
| private boolean[] | trackSolo
if a particular track is solo |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int[] | addControllerEventListener(ControllerEventListener listener, int[] controllers)
Implements javax. 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)
Implements javax. Registers a meta-event listener to receive notification whenever a meta-event is encountered in the sequence and processed by the sequencer. |
| protected Receiver | createReceiver()
Overrides com. Create a Receiver object. |
| protected Transmitter | createTransmitter()
Overrides com. Create a Transmitter object. |
| private void | |
| private static boolean[] | |
| private boolean | |
| private RealTimeSequencer. | getDataPump()
return the data pump instance, owned by play thread if playthread is null, return null. |
| private static EventDispatcher | |
| public int | getLoopCount()
Implements javax. Obtains the number of repetitions for playback. |
| public long | getLoopEndPoint()
Implements javax. Obtains the end position of the loop, in MIDI ticks. |
| public long | getLoopStartPoint()
Implements javax. Obtains the start position of the loop, in MIDI ticks. |
| public Sequencer. | getMasterSyncMode()
Implements javax. Obtains the current master synchronization mode for this sequencer. |
| public Sequencer. | getMasterSyncModes()
Implements javax. Obtains the set of master synchronization modes supported by this sequencer. |
| public long | getMicrosecondLength()
Implements javax. Obtains the length of the current sequence, expressed in microseconds, or 0 if no sequence is set. |
| public long | getMicrosecondPosition()
Overrides com. Implements javax. Obtains the current position in the sequence, expressed in microseconds. |
| public Sequence | getSequence()
Implements javax. Obtains the sequence on which the Sequencer is currently operating. |
| public Sequencer. | getSlaveSyncMode()
Implements javax. Obtains the current slave synchronization mode for this sequencer. |
| public Sequencer. | getSlaveSyncModes()
Implements javax. Obtains the set of slave synchronization modes supported by the sequencer. |
| private MidiUtils. | |
| public float | getTempoFactor()
Implements javax. Returns the current tempo factor for the sequencer. |
| public float | getTempoInBPM()
Implements javax. Obtains the current tempo, expressed in beats per minute. |
| public float | getTempoInMPQ()
Implements javax. Obtains the current tempo, expressed in microseconds per quarter note. |
| public long | getTickLength()
Implements javax. Obtains the length of the current sequence, expressed in MIDI ticks, or 0 if no sequence is set. |
| public synchronized long | getTickPosition()
Implements javax. Obtains the current position in the sequence, expressed in MIDI ticks. |
| pack-priv int | |
| public synchronized boolean | getTrackMute(int track)
Implements javax. Obtains the current mute state for a track. |
| public synchronized boolean | getTrackSolo(int track)
Implements javax. Obtains the current solo state for a track. |
| protected boolean | hasReceivers()
Overrides com. Returns if this device supports Receivers. |
| protected boolean | hasTransmitters()
Overrides com. Returns if this device supports Transmitters. |
| protected synchronized void | |
| protected void | |
| pack-priv void | |
| pack-priv void | |
| public boolean | isRecording()
Implements javax. Indicates whether the Sequencer is currently recording. |
| public boolean | isRunning()
Implements javax. Indicates whether the Sequencer is currently running. |
| private boolean | |
| private synchronized void | |
| public void | recordDisable(Track track)
Implements javax. Disables recording to the specified track. |
| public void | recordEnable(Track track, int channel)
Implements javax. Prepares the specified track for recording events received on a particular channel. |
| public int[] | removeControllerEventListener(ControllerEventListener listener, int[] controllers)
Implements javax. Removes a controller event listener's interest in one or more types of controller event. |
| public void | removeMetaEventListener(MetaEventListener listener)
Implements javax. Removes the specified meta-event listener from this sequencer's list of registered listeners, if in fact the listener is registered. |
| pack-priv void | |
| pack-priv void | |
| public void | setAutoConnect(Receiver autoConnectedReceiver)
Implements com. Set the receiver that this device is auto-connected. |
| private synchronized void | |
| public void | setLoopCount(int count)
Implements javax. Sets the number of repetitions of the loop for playback. |
| public void | setLoopEndPoint(long tick)
Implements javax. Sets the last MIDI tick that will be played in the loop. |
| public void | setLoopStartPoint(long tick)
Implements javax. Sets the first MIDI tick that will be played in the loop. |
| public void | setMasterSyncMode(Sequencer.
Implements javax. Sets the source of timing information used by this sequencer. |
| public void | setMicrosecondPosition(long microseconds)
Implements javax. Sets the current position in the sequence, expressed in microseconds. |
| public synchronized void | setSequence(Sequence sequence)
Implements javax. Sets the current sequence on which the sequencer operates. |
| public synchronized void | setSequence(InputStream stream)
Implements javax. Sets the current sequence on which the sequencer operates. |
| public void | setSlaveSyncMode(Sequencer.
Implements javax. Sets the slave synchronization mode for the sequencer. |
| public void | setTempoFactor(float factor)
Implements javax. Scales the sequencer's actual playback tempo by the factor provided. |
| public void | setTempoInBPM(float bpm)
Implements javax. Sets the tempo in beats per minute. |
| public void | setTempoInMPQ(float mpq)
Implements javax. Sets the tempo in microseconds per quarter note. |
| public synchronized void | setTickPosition(long tick)
Implements javax. Sets the current sequencer position in MIDI ticks. |
| public synchronized void | setTrackMute(int track, boolean mute)
Implements javax. Sets the mute state for a track. |
| public synchronized void | setTrackSolo(int track, boolean solo)
Implements javax. Sets the solo state for a track. |
| public synchronized void | start()
Implements javax. Starts playback of the MIDI data in the currently loaded sequence. |
| public void | startRecording()
Implements javax. Starts recording and playback of MIDI data. |
| public synchronized void | stop()
Implements javax. Stops recording, if active, and playback of the currently loaded sequence, if any. |
| public void |