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

Safe HaskellNone

Synthesizer.Interpolation

Contents

Synopsis

Documentation

data T t y

interpolation as needed for resampling

Constructors

Cons 

Fields

margin :: !Margin
 
func :: !(t -> T y -> y)
 

data Margin

Constructors

Margin 

Fields

marginNumber :: !Int

interpolation requires a total number of number

marginOffset :: !Int

interpolation requires offset values before the current

Instances

cons :: Int -> Int -> (t -> T y -> y) -> T t y

number :: T t y -> Int

offset :: T t y -> Int

Different kinds of interpolation

Hard-wired interpolations

newtype PrefixReader y a

Constructors

PrefixReader (Writer (Sum Int) (StateT (T y) Maybe a)) 

fromPrefixReader :: String -> Int -> PrefixReader y (t -> y) -> T t y

constant :: T t y

Consider the signal to be piecewise constant, where the leading value is used for filling the interval [0,1).