com.jsyn.unitgen
Class LinearRamp
java.lang.Object
com.jsyn.unitgen.UnitGenerator
com.jsyn.unitgen.UnitFilter
com.jsyn.unitgen.LinearRamp
- All Implemented Interfaces:
- UnitSink, UnitSource
public class LinearRamp
- extends UnitFilter
Output approaches Input linearly.
When you change the value of the input port, the ramp will start changing
from its current output value toward the value of input. An internal phase
value will go from 0.0 to 1.0 at a rate controlled by time. When the internal
phase reaches 1.0, the output will equal input.
- See Also:
ExponentialRamp
,
AsymptoticRamp
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 |
time
public UnitInputPort time
current
public UnitVariablePort current
LinearRamp
public LinearRamp()
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