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.TTransmitterSequencer.SyncModeMidiDevice.InfoLOOP_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, stopclose, getDeviceInfo, getMaxReceivers, getMaxTransmitters, getMicrosecondPosition, getReceiver, getReceivers, getTransmitter, getTransmitters, isOpen, openequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMicrosecondPositionclose, getDeviceInfo, getMaxReceivers, getMaxTransmitters, getReceiver, getReceivers, getTransmitter, getTransmitters, isOpen, openpublic JavaSequencer(MidiDevice.Info info)
public void run()
run in interface java.lang.Runnablepublic void setSequence(Sequence sequence) throws InvalidMidiDataException
setSequence in interface SequencersetSequence in class TSequencerInvalidMidiDataExceptionpublic void setMicrosecondPosition(long lPosition)
setMicrosecondPosition in interface Sequencerpublic void setTickPosition(long lPosition)
setTickPosition in interface Sequencerpublic long getTickPosition()
getTickPosition in interface Sequencerpublic void recordDisable(Track track)
recordDisable in interface Sequencerpublic void recordEnable(Track track)
public void recordEnable(Track track, int nChannel)
recordEnable in interface Sequencerpublic boolean isRecording()
isRecording in interface Sequencerpublic void stopRecording()
stopRecording in interface Sequencerpublic void startRecording()
startRecording in interface Sequencerpublic void setClock(JavaSequencer.Clock clock)
clock - the Clock to be usedjava.lang.IllegalStateException - if the sequencer is not closedpublic JavaSequencer.Clock getClock()