class RemiAudio::DSP::CemFilter
- RemiAudio::DSP::CemFilter
- Reference
- Object
Overview
Implements a lowpass filter that is similar to the one in a Curtis CEM3394.
Included Modules
Defined in:
remiaudio/dsp/cemfilter.crConstructors
-
.new(sampleRate)
Creates a new
CemFilter
.
Instance Method Summary
- #a0 : Float64
- #a1 : Float64
- #a2 : Float64
- #a3 : Float64
- #a4 : Float64
- #b0 : Float64
- #b1 : Float64
- #b2 : Float64
- #b3 : Float64
- #b4 : Float64
-
#cutoff=(val : Float64)
Sets the cutoff frequency of the filter.
-
#process(block : Array(Float32)) : RemiAudio::DSP::CemFilter
"Runs" the filter over
block
. -
#process(block : Array(Float64)) : RemiAudio::DSP::CemFilter
"Runs" the filter over
block
. -
#process(block : Slice(Float32)) : RemiAudio::DSP::CemFilter
"Runs" the filter over
block
. -
#process(block : Slice(Float64)) : RemiAudio::DSP::CemFilter
"Runs" the filter over
block
. -
#process(sample : Float64) : Float64
Processes a single sample with the filter, returning a new sample.
-
#reset : Nil
Clears the internal buffers.
-
#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
Instance methods inherited from module RemiAudio::DSP::LPFilter
active=(active : Bool)
active=,
active? : Bool
active?,
cutoff : Float64
cutoff,
cutoff=(val : Float64)
cutoff=,
invSampleRate : Float64
invSampleRate,
process(sample : Float32) : Float32process(sample : Float64) : Float64 process, reset : Nil reset, resonance : Float64 resonance, resonance=(val : Float64) resonance=, sampleRate : Float64 sampleRate, sampleRate=(val : Int | Float) : Nil sampleRate=, set(newCutoff : Float64, newResonance : Float64) set, updateCoefficients : Nil updateCoefficients
Class methods inherited from module RemiAudio::DSP::LPFilter
midiToCutoff(val : UInt8) : Float64
midiToCutoff
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.
"Runs" the filter over block
.
"Runs" the filter over block
.
"Runs" the filter over block
.
"Runs" the filter over block
.
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
.