Package com.softsynth.jmsl.jsyn
Class AllocatorFreeEvent
java.lang.Object
com.softsynth.jmsl.jsyn.AllocatorFreeEvent
- All Implemented Interfaces:
ScheduledEvent
public class AllocatorFreeEvent extends java.lang.Object implements ScheduledEvent
Deprecated.
use the pure Java JSyn2 package instead
This event can be posted in the future to free a SynthCircuit allocated by a
jsyn.util.VoiceAllocator
For example, in a JMSL Instrument's play() method, you could post a free() the same JMSL time as a noteOff(), by calling freeVoice() NOTE: Scheduled playTime is JMSL time! But free() time is int JSyn time!!!
Not used by any JMSL classes.
For example, in a JMSL Instrument's play() method, you could post a free() the same JMSL time as a noteOff(), by calling freeVoice() NOTE: Scheduled playTime is JMSL time! But free() time is int JSyn time!!!
Not used by any JMSL classes.
- Author:
- Nick Didkovsky, 2/17/0
-
Constructor Summary
Constructors Constructor Description AllocatorFreeEvent(EventScheduler scheduler, com.softsynth.jsyn.util.VoiceAllocator allocator, com.softsynth.jsyn.SynthCircuit circuit)
Deprecated. -
Method Summary
Modifier and Type Method Description static void
freeVoice(double playTime, EventScheduler scheduler, com.softsynth.jsyn.util.VoiceAllocator allocator, com.softsynth.jsyn.SynthCircuit circuit)
Deprecated.Post a free() in the futuredouble
getPlayTime()
Deprecated.void
play()
Deprecated.Called by EventScheduler to cause event to happen.void
setPlayTime(double playTime)
Deprecated.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AllocatorFreeEvent
public AllocatorFreeEvent(EventScheduler scheduler, com.softsynth.jsyn.util.VoiceAllocator allocator, com.softsynth.jsyn.SynthCircuit circuit)Deprecated.
-
-
Method Details
-
getPlayTime
public double getPlayTime()Deprecated.- Specified by:
getPlayTime
in interfaceScheduledEvent
- Returns:
- time that the event should occur.
-
setPlayTime
public void setPlayTime(double playTime)Deprecated. -
play
public void play()Deprecated.Description copied from interface:ScheduledEvent
Called by EventScheduler to cause event to happen.- Specified by:
play
in interfaceScheduledEvent
-
freeVoice
public static void freeVoice(double playTime, EventScheduler scheduler, com.softsynth.jsyn.util.VoiceAllocator allocator, com.softsynth.jsyn.SynthCircuit circuit)Deprecated.Post a free() in the future
-