|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jsyn.unitgen.UnitGenerator
com.jsyn.unitgen.UnitFilter
com.jsyn.unitgen.TunableFilter
com.jsyn.unitgen.FilterStateVariable
public class FilterStateVariable
Create a "State Variable Filter" based on the 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"
FilterLowPass
,
FilterHighPass
Field Summary | |
---|---|
UnitInputPort |
amplitude
Amplitude of Output in the range of 0.0 to 1.0. |
UnitOutputPort |
bandPass
Band pass filtered signal. |
UnitOutputPort |
highPass
High pass filtered signal. |
UnitOutputPort |
lowPass
Low pass filtered signal. |
UnitInputPort |
resonance
Controls feedback that causes self oscillation. |
Fields inherited from class com.jsyn.unitgen.TunableFilter |
---|
frequency |
Fields inherited from class com.jsyn.unitgen.UnitFilter |
---|
input, output |
Fields inherited from class com.jsyn.unitgen.UnitGenerator |
---|
FALSE, TRUE |
Constructor Summary | |
---|---|
FilterStateVariable()
No-argument constructor instantiates the Biquad common and adds an amplitude port to this filter. |
Method Summary | |
---|---|
void |
generate(int start,
int limit)
Perform essential synthesis function. |
Methods inherited from class com.jsyn.unitgen.UnitFilter |
---|
getInput, getOutput |
Methods inherited from class com.jsyn.unitgen.UnitGenerator |
---|
addPort, convertHalfLifeToMultiplier, flattenOutputs, generate, getFramePeriod, getFrameRate, getPortByName, getPorts, getSynthesisEngine, isEnabled, pullData, setCircuit, setFrameRate, setSynthesisEngine, start, stop |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public UnitInputPort amplitude
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.
public UnitInputPort resonance
public UnitOutputPort lowPass
Note that this signal is not affected by the amplitude port.
public UnitOutputPort bandPass
Note that this signal is not affected by the amplitude port.
public UnitOutputPort highPass
Note that this signal is not affected by the amplitude port.
Constructor Detail |
---|
public FilterStateVariable()
Method Detail |
---|
public void generate(int start, int limit)
UnitGenerator
generate
in class UnitGenerator
start
- offset into port bufferslimit
- limit offset into port buffers for loop
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |