|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 MusicClock
getNativeTicks
in class DefaultMusicClock
public double getNativeRate()
MusicClock
getNativeRate
in interface MusicClock
getNativeRate
in class DefaultMusicClock
public void sleepUntilNative(long wakeupTicks) throws java.lang.InterruptedException
sleepUntilNative
in interface MusicClock
sleepUntilNative
in class DefaultMusicClock
java.lang.InterruptedException
- thrown if Thread.interrupt() called.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |