Karya, built on 2020-11-26T21:03:17 (patch 23b5be2d53a9e8e7d6136cda5aae2849abe5cded)
Safe HaskellNone

Util.Audio.Resample

Description

Resample audio signals via libsamplerate.

Synopsis

Documentation

resample :: forall rate chan. (KnownNat chan, 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. (KnownNat rateIn, KnownNat rateOut, 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. (KnownNat rate, 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.

data Quality Source #

Instances

Instances details
Bounded Quality # 
Instance details

Defined in Util.Audio.SampleRateC

Enum Quality # 
Instance details

Defined in Util.Audio.SampleRateC

Eq Quality # 
Instance details

Defined in Util.Audio.SampleRateC

Methods

(==) :: Quality -> Quality -> Bool #

(/=) :: Quality -> Quality -> Bool #

Show Quality # 
Instance details

Defined in Util.Audio.SampleRateC

data SavedState Source #

Instances

Instances details
Eq SavedState # 
Instance details

Defined in Util.Audio.SampleRateC

Show SavedState # 
Instance details

Defined in Util.Audio.SampleRateC

Pretty SavedState # 
Instance details

Defined in Util.Audio.Resample

Serialize.Serialize SavedState # 
Instance details

Defined in Util.Audio.Resample

Orphan instances