com.jsyn.unitgen
Class FunctionEvaluator
java.lang.Object
com.jsyn.unitgen.UnitGenerator
com.jsyn.unitgen.UnitFilter
com.jsyn.unitgen.FunctionEvaluator
- All Implemented Interfaces:
- UnitSink, UnitSource
public class FunctionEvaluator
- extends UnitFilter
Convert an input value to an output value. The Function is typically
implemented by looking up a value in a DoubleTable. But other implementations
of Function can be used. Input typically ranges from -1.0 to +1.0.
- See Also:
Function
Method Summary |
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 |
amplitude
public UnitInputPort amplitude
function
public UnitFunctionPort function
FunctionEvaluator
public FunctionEvaluator()
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