com.softsynth.jsyn
Class LinearLag
java.lang.Object
java.util.Observable
com.softsynth.jsyn.SynthObject
com.softsynth.jsyn.SynthSound
com.softsynth.jsyn.SynthUnit
com.softsynth.jsyn.LinearLag
public class LinearLag
- extends SynthUnit
Output approaches Input linearly.
This unit provides a slowly changing value that approaches its input value 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.
- Version:
- JSyn Version 005
- Author:
- (C) 1997 Phil Burk, SoftSynth.com, All Rights Reserved
- See Also:
ExponentialLag
Methods inherited from class com.softsynth.jsyn.SynthSound |
addPort, addPort, findNamedPort, getName, getNumPorts, getPortAt, getPriority, setPriority, setStage, setStage, start, start, stop, stop |
Methods inherited from class java.util.Observable |
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
time
public SynthVariable time
- Time in seconds to reach new value. SIGNAL_TYPE_TIME
input
public SynthVariable input
- Target value. Time is reset whenever input changes. Note: not connectable. SIGNAL_TYPE_FULL_RANGE
output
public SynthOutput output
LinearLag
public LinearLag(SynthContext synthContext,
int calculationRate)
throws SynthException
- Throws:
SynthException
LinearLag
public LinearLag(SynthContext synthContext)
throws SynthException
- Create a LinearLag that runs at Synth.RATE_AUDIO.
- Throws:
SynthException
- If out of memory.
LinearLag
public LinearLag()
throws SynthException
- Throws:
SynthException