com.jsyn.unitgen
Class InterpolatingDelay

java.lang.Object
  extended by com.jsyn.unitgen.UnitGenerator
      extended by com.jsyn.unitgen.UnitFilter
          extended by 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.


Field Summary
 UnitInputPort delay
           
 
Fields inherited from class com.jsyn.unitgen.UnitFilter
input, output
 
Fields inherited from class com.jsyn.unitgen.UnitGenerator
FALSE, TRUE
 
Constructor Summary
InterpolatingDelay()
           
 
Method Summary
 void allocate(int numFrames)
           
 void generate(int start, int limit)
          Perform essential synthesis function.
 
Methods inherited from class com.jsyn.unitgen.UnitFilter
getInput, getOutput
 
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
 

Field Detail

delay

public UnitInputPort delay
Constructor Detail

InterpolatingDelay

public InterpolatingDelay()
Method Detail

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 buffers
limit - limit offset into port buffers for loop