public class JavaSequencer extends TSequencer implements java.lang.Runnable
Modifier and Type | Class and Description |
---|---|
static interface |
JavaSequencer.Clock
Interface for sequencer clocks.
|
TMidiDevice.Info, TMidiDevice.TReceiver, TMidiDevice.TTransmitter
Sequencer.SyncMode
MidiDevice.Info
LOOP_CONTINUOUSLY
Constructor and Description |
---|
JavaSequencer(MidiDevice.Info info) |
Modifier and Type | Method and Description |
---|---|
JavaSequencer.Clock |
getClock()
Obtain the clock used by this sequencer.
|
long |
getTickPosition() |
boolean |
isRecording() |
void |
recordDisable(Track track) |
void |
recordEnable(Track track) |
void |
recordEnable(Track track,
int nChannel) |
void |
run() |
void |
setClock(JavaSequencer.Clock clock)
Set the clock this sequencer should use.
|
void |
setMicrosecondPosition(long lPosition) |
void |
setSequence(Sequence sequence) |
void |
setTickPosition(long lPosition) |
void |
startRecording() |
void |
stopRecording() |
addControllerEventListener, addMetaEventListener, getLatency, getLoopCount, getLoopEndPoint, getLoopStartPoint, getMasterSyncMode, getMasterSyncModes, getMicrosecondLength, getSequence, getSlaveSyncMode, getSlaveSyncModes, getTempoFactor, getTempoInBPM, getTempoInMPQ, getTickLength, getTrackMute, getTrackSolo, isRunning, removeControllerEventListener, removeMetaEventListener, setLatency, setLoopCount, setLoopEndPoint, setLoopStartPoint, setMasterSyncMode, setSequence, setSlaveSyncMode, setTempoFactor, setTempoInBPM, setTempoInMPQ, setTrackMute, setTrackSolo, start, stop
close, getDeviceInfo, getMaxReceivers, getMaxTransmitters, getMicrosecondPosition, getReceiver, getReceivers, getTransmitter, getTransmitters, isOpen, open
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMicrosecondPosition
close, getDeviceInfo, getMaxReceivers, getMaxTransmitters, getReceiver, getReceivers, getTransmitter, getTransmitters, isOpen, open
public JavaSequencer(MidiDevice.Info info)
public void run()
run
in interface java.lang.Runnable
public void setSequence(Sequence sequence) throws InvalidMidiDataException
setSequence
in interface Sequencer
setSequence
in class TSequencer
InvalidMidiDataException
public void setMicrosecondPosition(long lPosition)
setMicrosecondPosition
in interface Sequencer
public void setTickPosition(long lPosition)
setTickPosition
in interface Sequencer
public long getTickPosition()
getTickPosition
in interface Sequencer
public void recordDisable(Track track)
recordDisable
in interface Sequencer
public void recordEnable(Track track)
public void recordEnable(Track track, int nChannel)
recordEnable
in interface Sequencer
public boolean isRecording()
isRecording
in interface Sequencer
public void stopRecording()
stopRecording
in interface Sequencer
public void startRecording()
startRecording
in interface Sequencer
public void setClock(JavaSequencer.Clock clock)
clock
- the Clock to be usedjava.lang.IllegalStateException
- if the sequencer is not closedpublic JavaSequencer.Clock getClock()