|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.Filter_1o1z
public class Filter_1o1z
Filter_1o1z unit. First Order, One Zero filter.
First Order, One Zero filter using the following formula:
y(n) = A0*x(n) + A1*x(n-1)
where y(n) is Output, x(n) is Input and x(n-1) is Input at the prior sample tick.
Setting A1 positive gives a low-pass response; setting A1 negative gives a high-pass response. The bandwidth of this filter is fairly high, so it often serves a building block by being cascaded with other filters.
If A0 and A1 are both 0.5, then this filter is a simple averaging lowpass filter, with a zero at SR/2 = 22050 Hz.
If A0 is 0.5 and A1 is -0.5, then this filter is a high pass filter, with a zero at 0.0 Hz.
A thorough description of the digital filter theory needed to fully describe this filter is beyond the scope of this document. Calculating coefficients is non-intuitive; the interested user is referred to one of the standard texts on filter theory (e.g., Moore, "Elements of Computer Music", section 2.4).
Synth
,
SynthUnit
,
Filter_1o1p
,
Filter_StateVariable
Field Summary | |
---|---|
SynthInput |
A0
Filter coefficient. |
SynthInput |
A1
Filter coefficient. |
Fields inherited from class com.softsynth.jsyn.SynthFilter |
---|
input, output |
Constructor Summary | |
---|---|
Filter_1o1z()
|
|
Filter_1o1z(SynthContext synthContext)
Create a SynthUnit that runs at Synth.RATE_AUDIO. |
|
Filter_1o1z(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 |
---|
public SynthInput A0
public SynthInput A1
Constructor Detail |
---|
public Filter_1o1z(SynthContext synthContext, int calculationRate) throws SynthException
SynthException
public Filter_1o1z(SynthContext synthContext) throws SynthException
SynthException
- If resource allocation fails.public Filter_1o1z() throws SynthException
SynthException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |