module RemiAudio::DSP::LPFilter
Direct including types
- RemiAudio::DSP::BiquadLP
- RemiAudio::DSP::CemFilter
- RemiAudio::DSP::HornetFilter
- RemiAudio::DSP::MS20Filter
- RemiAudio::DSP::SsmFilter
Defined in:
remiaudio/dsp/lpfilter.crConstant Summary
-
CUTOFF_MAX =
22000.0
-
The maximum cutoff frequency.
-
CUTOFF_MIN =
40.0
-
The minimum cutoff frequency.
-
ENABLE_AT =
CUTOFF_MAX - 1.0
-
If the cutoff is set above this, the filter is automatically disabled.
This is above human hearing limits.
-
RESONANCE_MAX =
1.0
-
The maximum resonance amount.
-
RESONANCE_MIN =
0.0
-
The mininum resonance amount.
Class Method Summary
-
.midiToCutoff(val : UInt8) : Float64
Converts a MIDI value (0-127) to a cutoff frequency in hertz.
Instance Method Summary
- #active=(active : Bool)
- #active? : Bool
-
#cutoff : Float64
The current cutoff of the filter.
- #cutoff=(val : Float64)
- #invSampleRate : Float64
- #process(sample : Float32) : Float32
- #process(sample : Float64) : Float64
- #reset : Nil
-
#resonance : Float64
The current resonance of the filter as a Q value.
- #resonance=(val : Float64)
- #sampleRate : Float64
- #sampleRate=(val : Int | Float) : Nil
- #set(newCutoff : Float64, newResonance : Float64)
- #updateCoefficients : Nil
Class Method Detail
def self.midiToCutoff(val : UInt8) : Float64
#
Converts a MIDI value (0-127) to a cutoff frequency in hertz.