Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Filter coefficient calculations.
Synopsis
- type SosCoef t = (t, t, t, t, t)
- bw_lpf_or_hpf_coef :: Floating n => Bool -> n -> n -> SosCoef n
- type Iir2Coef t = (t, t, t)
- rlpf_coef :: Floating n => (n -> n -> n) -> (n, n, n) -> Iir2Coef n
- resonz_coef :: Floating n => (n, n, n) -> Iir2Coef n
- type Pinking_Param t = (t, t, t, t, t, t, t)
- pinking_filter_freq_48000 :: Fractional t => Pinking_Param t
- pinking_filter_freq_96000 :: Fractional t => Pinking_Param t
- pinking_filter_freq_192000 :: Fractional t => Pinking_Param t
- pinking_filter_coef :: Floating t => t -> Pinking_Param t -> Pinking_Param t
- pinking_filter_next :: Floating t => Pinking_Param t -> Pinking_Param t -> t -> (t, Pinking_Param t)
Documentation
bw_lpf_or_hpf_coef :: Floating n => Bool -> n -> n -> SosCoef n Source #
Butterworth low pass or high pass Sos filter coefficients.
type Iir2Coef t = (t, t, t) Source #
Two place infinite impulse response filter coefficients, (a0, b1, b2)
rlpf_coef :: Floating n => (n -> n -> n) -> (n, n, n) -> Iir2Coef n Source #
rlpf coefficients, (a0,b1,b2).
resonz_coef :: Floating n => (n, n, n) -> Iir2Coef n Source #
resonz coefficients, (a0,b1,b2).
Pinking
type Pinking_Param t = (t, t, t, t, t, t, t) Source #
pinking_filter_freq_48000 :: Fractional t => Pinking_Param t Source #
Sample rate variable pinking filter.
https://www.musicdsp.org/en/latest/Filters/76-pink-noise-filter.html
pinking_filter_freq_96000 :: Fractional t => Pinking_Param t Source #
pinking_filter_freq_192000 :: Fractional t => Pinking_Param t Source #
pinking_filter_coef :: Floating t => t -> Pinking_Param t -> Pinking_Param t Source #
Pinking filter coefficients
>>>
pinking_filter_coef 48000 pinking_filter_freq_48000
(0.5368186045507747,0.5899888969306109,0.6945314610687594,0.8175983529924599,0.9542588306160661,0.9908788735874952,0.9960807097281633)
pinking_filter_next :: Floating t => Pinking_Param t -> Pinking_Param t -> t -> (t, Pinking_Param t) Source #