Karya, built on 2022-03-21T01:30:44 (patch 89d1651424c35e564138d93424a157ff87457245)
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