Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
Safe HaskellSafe-Inferred

Util.Audio.Resample

Description

Resample audio signals via libsamplerate.

Synopsis

Documentation

resample :: forall rate chan. (TypeLits.KnownNat chan, TypeLits.KnownNat rate) => Quality -> Double -> Audio.AudioIO rate chan -> Audio.AudioIO rate chan Source #

Resample the audio by a constant ratio. This doesn't actually change the sampling rate, since I just use this to change the pitch.

resampleRate :: forall rateIn rateOut chan. (TypeLits.KnownNat rateIn, TypeLits.KnownNat rateOut, TypeLits.KnownNat chan) => Quality -> Audio.AudioIO rateIn chan -> Audio.AudioIO rateOut chan Source #

data Config Source #

Configure the resampler.

Constructors

Config 

Fields

resampleBy :: forall rate chan. (TypeLits.KnownNat rate, TypeLits.KnownNat chan) => Config -> Signal.Control -> Audio.AudioIO rate chan -> Audio.AudioIO rate chan Source #

Resample the audio by the given curve. This doesn't actually change the sampling rate, since I just use this to change the pitch.

Orphan instances