|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tritonus.share.midi.TMidiDevice
org.tritonus.share.midi.TSequencer
org.tritonus.midi.device.java.JavaSequencer
Sequencer implementation in pure Java.
Nested Class Summary | |
---|---|
static interface |
JavaSequencer.Clock
Interface for sequencer clocks. |
Nested classes inherited from class org.tritonus.share.midi.TMidiDevice |
---|
TMidiDevice.Info, TMidiDevice.TReceiver, TMidiDevice.TTransmitter |
Nested classes inherited from class javax.sound.midi.Sequencer |
---|
Sequencer.SyncMode |
Nested classes inherited from class javax.sound.midi.MidiDevice |
---|
MidiDevice.Info |
Field Summary |
---|
Fields inherited from interface javax.sound.midi.Sequencer |
---|
LOOP_CONTINUOUSLY |
Constructor Summary | |
---|---|
JavaSequencer(MidiDevice.Info info)
|
Method Summary | |
---|---|
protected void |
closeImpl()
Subclasses have to override this method to be notified of closeing. |
JavaSequencer.Clock |
getClock()
Obtain the clock used by this sequencer. |
long |
getTickPosition()
|
protected long |
getTimeInMicroseconds()
Retrieve system time in microseconds. |
boolean |
isRecording()
|
protected void |
openImpl()
Subclasses have to override this method to be notified of opening. |
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. |
protected void |
setMasterSyncModeImpl(Sequencer.SyncMode syncMode)
|
void |
setMicrosecondPosition(long lPosition)
|
void |
setSequence(Sequence sequence)
|
protected void |
setSlaveSyncModeImpl(Sequencer.SyncMode syncMode)
|
protected void |
setTempoImpl(float fMPQ)
Change the tempo of the native sequencer part. |
void |
setTickPosition(long lPosition)
|
protected void |
startImpl()
Subclasses have to override this method to be notified of starting. |
void |
startRecording()
|
protected void |
stopImpl()
Subclasses have to override this method to be notified of stopping. |
void |
stopRecording()
|
Methods inherited from class org.tritonus.share.midi.TMidiDevice |
---|
close, getDeviceInfo, getMaxReceivers, getMaxTransmitters, getMicrosecondPosition, getReceiver, getReceivers, getTransmitter, getTransmitters, getUseIn, getUseOut, isOpen, open, receive, sendImpl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.sound.midi.Sequencer |
---|
getMicrosecondPosition |
Methods inherited from interface javax.sound.midi.MidiDevice |
---|
close, getDeviceInfo, getMaxReceivers, getMaxTransmitters, getReceiver, getReceivers, getTransmitter, getTransmitters, isOpen, open |
Constructor Detail |
---|
public JavaSequencer(MidiDevice.Info info)
Method Detail |
---|
protected void openImpl()
TMidiDevice
openImpl
in class TMidiDevice
protected void closeImpl()
TMidiDevice
closeImpl
in class TMidiDevice
protected void startImpl()
TSequencer
startImpl
in class TSequencer
protected void stopImpl()
TSequencer
stopImpl
in class TSequencer
public void run()
run
in interface Runnable
protected void setMasterSyncModeImpl(Sequencer.SyncMode syncMode)
setMasterSyncModeImpl
in class TSequencer
protected void setSlaveSyncModeImpl(Sequencer.SyncMode syncMode)
setSlaveSyncModeImpl
in class TSequencer
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
protected void setTempoImpl(float fMPQ)
TSequencer
setTempoImpl
in class TSequencer
protected long getTimeInMicroseconds()
setClock(org.tritonus.midi.device.java.JavaSequencer.Clock)
.
public void setClock(JavaSequencer.Clock clock)
clock
- the Clock to be used
IllegalStateException
- if the sequencer is not closedpublic JavaSequencer.Clock getClock()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |