com.jsyn.unitgen
Class InterpolatingDelay
java.lang.Object
com.jsyn.unitgen.UnitGenerator
com.jsyn.unitgen.UnitFilter
com.jsyn.unitgen.InterpolatingDelay
- All Implemented Interfaces:
- UnitSink, UnitSource
public class InterpolatingDelay
- extends UnitFilter
InterpolatingDelayUnit
InterpolatingDelayUnit provides a variable time delay with an input and
output. The internal data format is the same resolution as a SynthTable which
is floating point if the sound processor supports it. The amount of delay can
be varied from 0.0 to the delayTime specified at creation. The fractional
delay values are calculated by linearly interpolating between adjacent values
in the delay line.
This unit can be used to implement time varying delay effects such as a
flanger or a chorus. It can also be used to implement physical models of
acoustic instruments, or other tuneable delay based resonant systems.
Method Summary |
void |
allocate(int numFrames)
|
void |
generate(int start,
int limit)
Perform essential synthesis function. |
Methods inherited from class com.jsyn.unitgen.UnitGenerator |
addPort, convertHalfLifeToMultiplier, flattenOutputs, generate, getFramePeriod, getFrameRate, getPortByName, getPorts, getSynthesisEngine, isEnabled, pullData, setCircuit, setFrameRate, setSynthesisEngine, start, stop |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
delay
public UnitInputPort delay
InterpolatingDelay
public InterpolatingDelay()
allocate
public void allocate(int numFrames)
generate
public void generate(int start,
int limit)
- Description copied from class:
UnitGenerator
- Perform essential synthesis function.
- Specified by:
generate
in class UnitGenerator
- Parameters:
start
- offset into port bufferslimit
- limit offset into port buffers for loop