com.softsynth.jsyn
Class Filter_StateVariable

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

public class Filter_StateVariable
extends SynthFilter

State Variable Filter This filter is based on the State Variable Filter described in Hal Chamberlain's "Musical Applications of MicroProcessors". It is convenient because its frequency and resonance can each be controlled by a single value.

The "output" port of this filter is the "lowPass" output multiplied by the "amplitude".

Version:
JSyn Version 005
Author:
(C) 1997 Phil Burk, SoftSynth.com, All Rights Reserved
See Also:
Synth, SynthUnit, Filter_101z

Field Summary
 SynthInput amplitude
          Amplitude of Output in the range of 0.0 to 1.0.
 SynthOutput bandPass
          Band pass filtered signal.
 SynthInput frequency
          Frequency of filter cutoff in Hertz.
 SynthOutput highPass
          High pass filtered signal.
 SynthOutput lowPass
          Low pass filtered signal.
 SynthInput resonance
          Controls feedback that causes self oscillation.
 
Fields inherited from class com.softsynth.jsyn.SynthFilter
input, output
 
Constructor Summary
Filter_StateVariable()
           
Filter_StateVariable(SynthContext synthContext)
          Create a StateVariableFilter that runs at Synth.RATE_AUDIO.
Filter_StateVariable(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

frequency

public SynthInput frequency
Frequency of filter cutoff in Hertz. SIGNAL_TYPE_FULL_RANGE


resonance

public SynthInput resonance
Controls feedback that causes self oscillation. Actually 1/Q - SIGNAL_TYPE_RAW_SIGNED in the range of 0.0 to 1.0. Defaults to 0.125.


amplitude

public SynthInput amplitude
Amplitude of Output in the range of 0.0 to 1.0. SIGNAL_TYPE_RAW_SIGNED Defaults to 1.0

Note that the amplitude only affects the "output" port and not the lowPass, bandPass or highPass signals. Use a MultiplyUnit if you need to scale those signals.


lowPass

public SynthOutput lowPass
Low pass filtered signal. SIGNAL_TYPE_RAW_SIGNED

Note that this signal is not affected by the amplitude port.


bandPass

public SynthOutput bandPass
Band pass filtered signal. SIGNAL_TYPE_RAW_SIGNED

Note that this signal is not affected by the amplitude port.


highPass

public SynthOutput highPass
High pass filtered signal. SIGNAL_TYPE_RAW_SIGNED

Note that this signal is not affected by the amplitude port.

Constructor Detail

Filter_StateVariable

public Filter_StateVariable(SynthContext synthContext,
                            int calculationRate)
                     throws SynthException
Throws:
SynthException

Filter_StateVariable

public Filter_StateVariable(SynthContext synthContext)
                     throws SynthException
Create a StateVariableFilter that runs at Synth.RATE_AUDIO.

Throws:
SynthException - If name does not match list of valid units. Note that match is case sensitive.

Filter_StateVariable

public Filter_StateVariable()
                     throws SynthException
Throws:
SynthException