com.softsynth.jsyn
Class LinearLag

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.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

Field Summary
 SynthVariable input
          Target value.
 SynthOutput output
           
 SynthVariable time
          Time in seconds to reach new value.
 
Constructor Summary
LinearLag()
           
LinearLag(SynthContext synthContext)
          Create a LinearLag that runs at Synth.RATE_AUDIO.
LinearLag(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

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
Constructor Detail

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