|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Sequencer
The Sequencer interface for mxdublin. Since it will take time to make a perfect scheduler in Java, the sequencer implementation will be easily changed in mxdublin. Each sequencer will have to implement this interface.
Seq24Clock is the default sequencer in mxdublin 0.6. When the first mxdublin object is instantiated, mxdublin will try to load the implementation from key name "sequencer.impl" in the mxdublin properties file.
Any calls that needs to be synchronized with the event queue can be done on the sequencer instance.
| Field Summary | |
|---|---|
static int |
PPQ_RESOLUTION
The internal sequencer part per quarter note resolution. |
| Method Summary | |
|---|---|
void |
clock()
This is called when the external clock sends a 24ppq tick; E.G. |
void |
flush()
Execute pending event that needs to be flush. |
int |
getCurrentTime()
Returns the current time of this sequencer in ppq since it has been started. |
int |
getCurrentTime(SeqEvent event)
Returns the current time of this event compared with an event |
float |
getTempo()
Returns the current tempo of this sequencer. |
int |
purge()
Cleans the sequencer of unused event. |
void |
sched(SeqEvent event,
int ppq)
Schedule a event into the sequencer. |
void |
tempo(float tempo)
Set the tempo for this sequencer. |
| Field Detail |
|---|
static final int PPQ_RESOLUTION
| Method Detail |
|---|
void sched(SeqEvent event,
int ppq)
event - the event to scheduleppq - the time to schedule the event in ppqint purge()
void flush()
void clock()
void tempo(float tempo)
float getTempo()
int getCurrentTime(SeqEvent event)
event - the time to compare with
int getCurrentTime()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||