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

Copyright (c) Henning Thielemann 2008 GPL synthesizer@henning-thielemann.de provisional requires multi-parameter type classes None Haskell2010

Synthesizer.Plain.Filter.Recursive.MovingAverage

Description

Synopsis

# Documentation

sumsStaticInt :: C v => Int -> T v -> T v Source #

Like 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) => Int -> T a -> T v -> T v Source #