|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.softsynth.jmsl.DefaultMusicClock
com.softsynth.jmsl.jsyn.SynthClock
public class SynthClock
SynthClock to allow use of JSyn timers with JMSL
| Constructor Summary | |
|---|---|
SynthClock()
|
|
| Method Summary | |
|---|---|
double |
getNativeRate()
Return rate of underlying native clock. |
long |
getNativeTicks()
Override this method to support other integer based clocks like JSyn's. |
void |
sleepUntilNative(long wakeupTicks)
Sleep until the specified native time. |
| Methods inherited from class com.softsynth.jmsl.DefaultMusicClock |
|---|
getAdvance, getRate, now, realTime, setAdvance, setRate, sleepUntil, timeToNative |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SynthClock()
| Method Detail |
|---|
public long getNativeTicks()
MusicClock
getNativeTicks in interface MusicClockgetNativeTicks in class DefaultMusicClockpublic double getNativeRate()
MusicClock
getNativeRate in interface MusicClockgetNativeRate in class DefaultMusicClock
public void sleepUntilNative(long wakeupTicks)
throws java.lang.InterruptedException
sleepUntilNative in interface MusicClocksleepUntilNative in class DefaultMusicClockjava.lang.InterruptedException - thrown if Thread.interrupt() called.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||