Mercurial > hg > qm-dsp
comparison dsp/onsets/DetectionFunction.h @ 130:2053a308bb4d kissfft
Frame length no longer needs to be a power of two
author | Chris Cannam |
---|---|
date | Tue, 15 Oct 2013 11:52:00 +0100 |
parents | 2020c73dc997 |
children | fdaa63607c15 |
comparison
equal
deleted
inserted
replaced
129:6ec45e85ed81 | 130:2053a308bb4d |
---|---|
27 #define DF_COMPLEXSD (4) | 27 #define DF_COMPLEXSD (4) |
28 #define DF_BROADBAND (5) | 28 #define DF_BROADBAND (5) |
29 | 29 |
30 struct DFConfig{ | 30 struct DFConfig{ |
31 unsigned int stepSize; // DF step in samples | 31 unsigned int stepSize; // DF step in samples |
32 unsigned int frameLength; // DF analysis window - usually 2*step | 32 unsigned int frameLength; // DF analysis window - usually 2*step. Must be even! |
33 int DFType; // type of detection function ( see defines ) | 33 int DFType; // type of detection function ( see defines ) |
34 double dbRise; // only used for broadband df (and required for it) | 34 double dbRise; // only used for broadband df (and required for it) |
35 bool adaptiveWhitening; // perform adaptive whitening | 35 bool adaptiveWhitening; // perform adaptive whitening |
36 double whiteningRelaxCoeff; // if < 0, a sensible default will be used | 36 double whiteningRelaxCoeff; // if < 0, a sensible default will be used |
37 double whiteningFloor; // if < 0, a sensible default will be used | 37 double whiteningFloor; // if < 0, a sensible default will be used |