flac-0.1.2: Complete high-level binding to libFLAC

Copyright© 2016–2017 Mark Karpov
LicenseBSD 3 clause
MaintainerMark Karpov <markkarpov92@gmail.com>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Codec.Audio.FLAC.StreamEncoder.Apodization

Description

This module exports the ApodizationFunction data type, which is rarely needed, and thus should not “contaminate” the Codec.Audio.FLAC.StreamEncoder module with potentially confilcting names.

Synopsis

Documentation

data ApodizationFunction Source #

Supported apodization functions.

Constructors

Bartlett 
BartlettHann 
Blackman 
BlackmanHarris4Term92Db 
Connes 
Flattop 
Gauss Double

The parameter is standard deviation STDDEV, 0 < STDDEV <= 0.5.

Hamming 
Hann 
KaiserBessel 
Nuttall 
Rectangle 
Triangle 
Tukey Double

The parameter is the fraction of the window that is tapered P, 0 <= P <= 1. P == 0 corresponds to Rectangle and P = 1 corresponds to Hann.

PartialTukey Natural (Maybe (Double, Maybe Double))

The parameters are a series of small windows (all treated separately). The three parameters are n, ov and P. n is the number of functions to add, ov is the overlap of the windows. P is the fraction of the window that is tapered, like with a regular tukey window. The function can be specified with only a number, a number and an overlap, or a number, an overlap and a P. ov should be smaller than 1 and can be negative.

PunchoutTukey Natural (Maybe (Double, Maybe Double))

The parameters are a series of windows that have a hole in them. In this way, the predictor is constructed with only a part of the block, which helps in case a block consists of dissimilar parts. All said about the parameters in the comment for PartialTukey applies here, with the exception that ov is the overlap in the gaps in this case.

Welch