class Haematite::FakeFilter
- Haematite::FakeFilter
- Reference
- Object
Overview
A filter that does nothing but pass samples through unaltered.
Included Modules
- RemiAudio::DSP::LPFilter
Defined in:
haematite/fakefilter.crConstructors
-
.new(sampleRate)
Creates a new
BiQuadFilter
.
Instance Method Summary
-
#cutoff=(val : Float64)
Sets the cutoff frequency of the filter.
-
#process(block : Array(Float32)) : Haematite::FakeFilter
"Runs" the filter over
block
. -
#process(block : Array(Float64)) : Haematite::FakeFilter
"Runs" the filter over
block
. -
#process(block : Slice(Float32)) : Haematite::FakeFilter
"Runs" the filter over
block
. -
#process(block : Slice(Float64)) : Haematite::FakeFilter
"Runs" the filter over
block
. -
#process(sample : Float64) : Float64
Processes a single sample with the filter, returning a new sample.
- #reset : Nil
-
#resonance=(val : Float64)
Sets the resonance of the filter.
-
#set(newCutoff : Float64, newResonance : Float64)
Sets both the cutoff frequency and resonance of the filter.
- #updateCoefficients : Nil
Constructor Detail
Instance Method Detail
Sets the cutoff frequency of the filter. If this is less than the NyQuist limit, then the filter will be disabled.
Processes a single sample with the filter, returning a new sample.
Sets the resonance of the filter. This will be clamped to
RESONANCE_MIN..RESONANCE_MAX
.
Sets both the cutoff frequency and resonance of the filter. If the cutoff
is less than the NyQuist limit, then the filter will be disabled. The
cutoff will be clamped to RESONANCE_MIN..RESONANCE_MAX
.