|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.e1.mxdublin.core.Seq24
public class Seq24
Basic sequencer for mxdublin that plays the events with a PPQ resolution of 24, just like a midi clock. This sequencer doesn't really sequence events, it simply wait for the clock to tick to play all the events within the 24 PPQ range.
While 24 PPQ can be pretty weak, but at 120 bpm it can give a resolution of 1.02 millisecond.
| Field Summary |
|---|
| Fields inherited from interface com.e1.mxdublin.core.Sequencer |
|---|
PPQ_RESOLUTION |
| Constructor Summary | |
|---|---|
Seq24()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Seq24()
| Method Detail |
|---|
public void flush()
Sequencer
flush in interface Sequencerpublic int purge()
Sequencer
purge in interface Sequencer
public void sched(SeqEvent event,
int ppq)
Sequencer
sched in interface Sequencerevent - the event to scheduleppq - the time to schedule the event in ppqpublic void clock()
Sequencer
clock in interface Sequencerpublic void tempo(float tempo)
Sequencer
tempo in interface Sequencerpublic float getTempo()
Sequencer
getTempo in interface Sequencerpublic int getCurrentTime(SeqEvent event)
Sequencer
getCurrentTime in interface Sequencerevent - the time to compare with
public int getCurrentTime()
Sequencer
getCurrentTime in interface Sequencer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||