|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MusicClock
Interface to real time clock
| Method Summary | |
|---|---|
double |
getAdvance()
|
double |
getNativeRate()
Return rate of underlying native clock. |
long |
getNativeTicks()
Override this method to support other integer based clocks like JSyn's. |
double |
getRate()
|
double |
now()
|
double |
realTime()
|
void |
setAdvance(double duration)
Set amount of time to wake up early. |
void |
setRate(double rate)
Set clock rate. |
void |
sleepUntil(double time)
Sleep until the specified time minus the advance time. |
void |
sleepUntilNative(long wakeupTicks)
Sleep until the specified native time. |
long |
timeToNative(double time)
Convert JMSL time to underlying native timer ticks. |
| Method Detail |
|---|
double now()
double realTime()
void setAdvance(double duration)
double getAdvance()
void sleepUntil(double time)
throws java.lang.InterruptedException
java.lang.InterruptedException - thrown if Thread.interrupt() called.void setRate(double rate)
double getRate()
long getNativeTicks()
double getNativeRate()
long timeToNative(double time)
void sleepUntilNative(long wakeupTicks)
throws java.lang.InterruptedException
java.lang.InterruptedException - thrown if Thread.interrupt() called.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||