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

Safe HaskellNone
LanguageHaskell2010

Synthesizer.State.Analysis

Synopsis

Documentation

volumeMaximum :: C y => T y -> y Source #

Volume based on Manhattan norm.

volumeEuclidean :: C y => T y -> y Source #

Volume based on Energy norm.

volumeEuclideanSqr :: C y => T y -> y Source #

volumeSum :: (C y, C y) => T y -> y Source #

Volume based on Sum norm.

volumeVectorMaximum :: (C y yv, Ord y) => T yv -> y Source #

Volume based on Manhattan norm.

volumeVectorEuclidean :: (C y, C y yv) => T yv -> y Source #

Volume based on Energy norm.

volumeVectorEuclideanSqr :: (C y, Sqr y yv) => T yv -> y Source #

volumeVectorSum :: (C y yv, C y) => T yv -> y Source #

Volume based on Sum norm.

bounds :: Ord y => T y -> (y, y) Source #

Compute minimum and maximum value of the stream the efficient way. Input list must be non-empty and finite.

histogramDiscreteArray :: T Int -> (Int, T Int) Source #

Input list must be finite. List is scanned twice, but counting may be faster.

histogramLinearArray :: C y => T y -> (Int, T y) Source #

Input list must be finite. If the input signal is empty, the offset is undefined. List is scanned twice, but counting may be faster. The sum of all histogram values is one less than the length of the signal.

histogramDiscreteIntMap :: T Int -> (Int, T Int) Source #

Input list must be finite. If the input signal is empty, the offset is undefined. List is scanned once, counting may be slower.

histogramLinearIntMap :: C y => T y -> (Int, T y) Source #

histogramIntMap :: C y => y -> T y -> (Int, T Int) Source #

directCurrentOffset :: C y => T y -> y Source #

Requires finite length. This is identical to the arithmetic mean.

scalarProduct :: C y => T y -> T y -> y Source #

centroid :: C y => T y -> y Source #

directCurrentOffset must be non-zero.

centroidRecompute :: C y => T y -> y Source #

firstMoment :: C y => T y -> y Source #

average :: C y => T y -> y Source #

averageRecompute :: C y => T y -> y Source #

rectify :: C y => T y -> T y Source #

zeros :: (Ord y, C y) => T y -> T Bool Source #

Detects zeros (sign changes) in a signal. This can be used as a simple measure of the portion of high frequencies or noise in the signal. It ca be used as voiced/unvoiced detector in a vocoder.

zeros x !! n is True if and only if (x !! n >= 0) /= (x !! (n+1) >= 0). The result will be one value shorter than the input.

flipFlopHysteresis :: Ord y => (y, y) -> BinaryLevel -> T y -> T BinaryLevel Source #

Detect thresholds with a hysteresis.

chirpTransform :: C y => y -> T y -> T y Source #

Almost naive implementation of the chirp transform, a generalization of the Fourier transform.

More sophisticated algorithms like Rader, Cooley-Tukey, Winograd, Prime-Factor may follow.