synthesizer-core-0.7.0.2: Audio signal processing coded in Haskell: Low level part

Safe HaskellNone

Synthesizer.State.Interpolation

Contents

Synopsis

Interpolation with various padding methods

zeroPad :: C t => (T t y -> t -> T y -> a) -> y -> T t y -> t -> T y -> a

constantPad :: C t => (T t y -> t -> T y -> a) -> T t y -> t -> T y -> a

cyclicPad :: C t => (T t y -> t -> T y -> a) -> T t y -> t -> T y -> a

Only for finite input signals.

extrapolationPad :: C t => (T t y -> t -> T y -> a) -> T t y -> t -> T y -> a

The extrapolation may miss some of the first and some of the last points

Helper methods for interpolation of multiple nodes

skip :: C t => T t y -> (t, T y) -> (t, T y)

single :: C t => T t y -> t -> T y -> y

Helper functions

delayPad :: y -> Int -> T y -> T y