Copyright | (c) Marek Materzok 2021 |
---|---|
License | BSD2 |
Safe Haskell | None |
Language | Haskell2010 |
This module defines popular window functions for use in the vocoder framework.
Synopsis
- makeWindow :: (Double -> Double) -> Length -> Window
- boxWindow :: Length -> Window
- triangleWindow :: Length -> Window
- hammingWindow :: Length -> Window
- hannWindow :: Length -> Window
- generalizedBlackmanWindow :: Double -> Length -> Window
- blackmanWindow :: Length -> Window
- exactBlackmanWindow :: Length -> Window
- lanczosWindow :: Length -> Window
- flatTopWindow :: Length -> Window
Documentation
makeWindow :: (Double -> Double) -> Length -> Window Source #
Creates a window of given length by sampling a function on the interval [0,1].
triangleWindow :: Length -> Window Source #
Creates a triangular window.
hammingWindow :: Length -> Window Source #
Creates a Hamming window.
hannWindow :: Length -> Window Source #
Creates a Hann window.
generalizedBlackmanWindow :: Double -> Length -> Window Source #
Creates a generalized Blackman window for a given alpha value.
blackmanWindow :: Length -> Window Source #
Creates a Blackman window (with alpha=0.16).
exactBlackmanWindow :: Length -> Window Source #
Creates an exact Blackman window.
lanczosWindow :: Length -> Window Source #
Creates a Lanczos window.
flatTopWindow :: Length -> Window Source #
Creates a flat top window.