Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
This module implements IIR filters.
See: http://shepazu.github.io/Audio-EQ-Cookbook/audio-eq-cookbook.html
Synopsis
- data IIRParams = IIRParams {}
- applyIIRFilter :: (SamplingInfo -> IIRParams) -> Sound d Pulse -> Sound d Pulse
- lowPassFilter :: Hz -> Float -> SamplingInfo -> IIRParams
- highPassFilter :: Hz -> Float -> SamplingInfo -> IIRParams
- bandPassFilter :: Hz -> Float -> SamplingInfo -> IIRParams
Usage
IIRParams contains the filter coefficients for the forward and feedback computation
applyIIRFilter :: (SamplingInfo -> IIRParams) -> Sound d Pulse -> Sound d Pulse Source #
Applies the IIR filter defined by the IIRParams
to the sound.
Design
lowPassFilter :: Hz -> Float -> SamplingInfo -> IIRParams Source #
A low-pass filter using cutoff frequency and resonance.
highPassFilter :: Hz -> Float -> SamplingInfo -> IIRParams Source #
A high-pass filter using cutoff frequency and resonance.
bandPassFilter :: Hz -> Float -> SamplingInfo -> IIRParams Source #
A band pass filter using cutoff frequency and resonance.