class RemiAudio::DSP::BiquadLP
- RemiAudio::DSP::BiquadLP
- Reference
- Object
Overview
A digital biquad lowpass filter.
This is identical to using a normal BiQuadFilter
instance, except it is
optimized strictly for lowpass usage and includes the LPFilter
module.
Included Modules
Defined in:
remiaudio/dsp/biquadlp.crConstructors
-
.new(newSampleRate)
Creates a new
BiQuadFilter
.
Instance Method Summary
- #a1 : Float64
- #a2 : Float64
- #b0 : Float64
- #b1 : Float64
- #b2 : Float64
- #cutoff : Float64
- #cutoff=(val : Float64) : Nil
-
#plot(pt : PlotType, *, coeffsOnly : Bool = false) : String
Generates a string that can be passed to a program to plot this filter on a graph.
-
#process(block : Array(Float32)) : RemiAudio::DSP::BiquadLP
"Runs" the filter over
block
. -
#process(block : Array(Float64)) : RemiAudio::DSP::BiquadLP
"Runs" the filter over
block
. -
#process(block : Slice(Float32)) : RemiAudio::DSP::BiquadLP
"Runs" the filter over
block
. -
#process(block : Slice(Float64)) : RemiAudio::DSP::BiquadLP
"Runs" the filter over
block
. - #process(sample : Float64) : Float64
-
#reset : Nil
Clears the internal buffer.
- #resonance : Float64
- #resonance=(val : Float64) : Nil
- #set(newCutoff : Float64, newResonance : Float64)
- #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
Generates a string that can be passed to a program to plot this filter on
a graph. The PlotType
dictates what kind of script is generated.
"Runs" the filter over block
.
"Runs" the filter over block
.
"Runs" the filter over block
.
"Runs" the filter over block
.