Package com.softsynth.jmsl.jsyn
Class SynthClock
java.lang.Object
com.softsynth.jmsl.DefaultMusicClock
com.softsynth.jmsl.jsyn.SynthClock
- All Implemented Interfaces:
MusicClock
public class SynthClock extends DefaultMusicClock
Deprecated.
use the pure Java JSyn2 package instead
SynthClock to allow use of JSyn timers with JMSL
- Author:
- Phil Burk (C) 1997 Phil Burk
-
Constructor Summary
Constructors Constructor Description SynthClock()
Deprecated. -
Method Summary
Modifier and Type Method Description double
getNativeRate()
Deprecated.Return rate of underlying native clock.long
getNativeTicks()
Deprecated.Override this method to support other integer based clocks like JSyn's.void
sleepUntilNative(long wakeupTicks)
Deprecated.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 Details
-
SynthClock
public SynthClock()Deprecated.
-
-
Method Details
-
getNativeTicks
public long getNativeTicks()Deprecated.Description copied from interface:MusicClock
Override this method to support other integer based clocks like JSyn's.- Specified by:
getNativeTicks
in interfaceMusicClock
- Overrides:
getNativeTicks
in classDefaultMusicClock
-
getNativeRate
public double getNativeRate()Deprecated.Description copied from interface:MusicClock
Return rate of underlying native clock.- Specified by:
getNativeRate
in interfaceMusicClock
- Overrides:
getNativeRate
in classDefaultMusicClock
-
sleepUntilNative
public void sleepUntilNative(long wakeupTicks) throws java.lang.InterruptedExceptionDeprecated.Sleep until the specified native time.- Specified by:
sleepUntilNative
in interfaceMusicClock
- Overrides:
sleepUntilNative
in classDefaultMusicClock
- Throws:
java.lang.InterruptedException
- thrown if Thread.interrupt() called.
-