com.softsynth.jsyn
Class IntegrateUnit
java.lang.Object
java.util.Observable
com.softsynth.jsyn.SynthObject
com.softsynth.jsyn.SynthSound
com.softsynth.jsyn.SynthUnit
com.softsynth.jsyn.SynthFilter
com.softsynth.jsyn.IntegrateUnit
public class IntegrateUnit
- extends SynthFilter
IntegrateUnit unit.
Output accumulated sum of the input signal.
This can be used to transform one signal into another,
or to generate ramps between the limits by setting the input signal positive or negative.
For a "leaky integrator" use a Filter_101p.
output = output + input;
if( output < lowerLimit ) output = lowerLimit;
else if( output > upperLimit ) output = upperLimit;
- Version:
- JSyn Version 142
- Author:
- (C) 1997 Phil Burk, SoftSynth.com, All Rights Reserved
- See Also:
MinimumUnit
,
SchmidtTrigger
,
Filter_101p
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 |
lowerLimit
public SynthInput lowerLimit
- Output will be stopped internally from going below this value. Default is -1.0.
upperLimit
public SynthInput upperLimit
- Output will be stopped internally from going above this value. Default is +1.0.
IntegrateUnit
public IntegrateUnit(SynthContext synthContext,
int calculationRate)
throws SynthException
- Throws:
SynthException
IntegrateUnit
public IntegrateUnit(SynthContext synthContext)
throws SynthException
- Create one that runs at Synth.RATE_AUDIO.
- Throws:
SynthException
- If resource allocation fails.
IntegrateUnit
public IntegrateUnit()
throws SynthException
- Throws:
SynthException