com.jsyn.unitgen
Class AsymptoticRamp
java.lang.Object
com.jsyn.unitgen.UnitGenerator
com.jsyn.unitgen.UnitFilter
com.jsyn.unitgen.AsymptoticRamp
- All Implemented Interfaces:
- UnitSink, UnitSource
public class AsymptoticRamp
- extends UnitFilter
Output approaches Input exponentially. This unit provides a slowly changing
value that approaches its Input value exponentially. The equation is:
Output = Output + Rate * (Input - Output);
Note that the output may never reach the value of the input. It approaches
the input asymptotically.
The Rate is calculated internally based on the value on the halfLife port.
Rate is generally just slightly less than 1.0.
- Version:
- 016
- See Also:
LinearRamp
,
ExponentialRamp
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 |
current
public UnitVariablePort current
halfLife
public UnitInputPort halfLife
AsymptoticRamp
public AsymptoticRamp()
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