lambdasound-1.2.0: A libary for generating low-level sounds with high-level combinators
Safe HaskellSafe-Inferred
LanguageGHC2021

LambdaSound.Filter

Contents

Description

Synopsis

Usage

data IIRParams Source #

IIRParams contains the filter coefficients for the forward and feedback computation

Constructors

IIRParams 

Instances

Instances details
Show IIRParams Source # 
Instance details

Defined in LambdaSound.Filter

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.