com.softsynth.jsyn
Class IntegrateUnit

java.lang.Object
  extended by java.util.Observable
      extended by com.softsynth.jsyn.SynthObject
          extended by com.softsynth.jsyn.SynthSound
              extended by com.softsynth.jsyn.SynthUnit
                  extended by com.softsynth.jsyn.SynthFilter
                      extended by 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

Field Summary
 SynthInput lowerLimit
          Output will be stopped internally from going below this value.
 SynthInput upperLimit
          Output will be stopped internally from going above this value.
 
Fields inherited from class com.softsynth.jsyn.SynthFilter
input, output
 
Constructor Summary
IntegrateUnit()
           
IntegrateUnit(SynthContext synthContext)
          Create one that runs at Synth.RATE_AUDIO.
IntegrateUnit(SynthContext synthContext, int calculationRate)
           
 
Method Summary
 
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 com.softsynth.jsyn.SynthObject
delete, deleteAll, enableDeletionByGarbageCollector, enableTracking, getPeer, getSynthContext, isTrackingEnabled, toString, track
 
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
 

Field Detail

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.

Constructor Detail

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