synthesizer-core-0.2: Audio signal processing coded in Haskell: Low level partSource codeContentsIndex
Synthesizer.Generic.Filter.Recursive.MovingAverage
Portabilityrequires multi-parameter type classes
Stabilityprovisional
Maintainersynthesizer@henning-thielemann.de
Description
Synopsis
sumsStaticInt :: (C v, Write sig v) => Int -> sig v -> sig v
modulatedFrac :: (C a, C a v, Transform sig a v, Write sig v) => Int -> sig a -> sig v -> sig v
Documentation
sumsStaticInt :: (C v, Write sig v) => Int -> sig v -> sig vSource

Like Synthesizer.Generic.Filter.NonRecursive.sums but in a recursive form. This needs only linear time (independent of the window size) but may accumulate rounding errors.

ys = xs * (1,0,0,0,-1) / (1,-1)
ys * (1,-1) = xs * (1,0,0,0,-1)
ys = xs * (1,0,0,0,-1) + ys * (0,1)
modulatedFrac :: (C a, C a v, Transform sig a v, Write sig v) => Int -> sig a -> sig v -> sig vSource
Produced by Haddock version 2.4.2