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

LambdaSound.Convolution

Synopsis

Documentation

data Kernel p Source #

A Kernel for convolution

Constructors

Kernel 

Fields

convolveSamples :: Kernel Int -> Sound T Pulse -> Sound T Pulse Source #

Convolve a Sound where the Kernel size is determined by the amount of samples. You have to keep in mind that different sample rates will result in a different number of samples for the same sound.

convolvePercentage :: Kernel Percentage -> Sound d Pulse -> Sound d Pulse Source #

Convolve a Sound where the Kernel size is determined by Percentages of the sound.

convolveDuration :: Kernel Duration -> Sound T Pulse -> Sound T Pulse Source #

Convolve a Sound where the Kernel size is determined by a Duration.