Mercurial > hg > qm-dsp
comparison dsp/onsets/DetectionFunction.h @ 356:42d416af5030
Frame length no longer needs to be a power of two
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Tue, 15 Oct 2013 11:52:00 +0100 |
parents | 5eb9c2387108 |
children | fdaa63607c15 |
comparison
equal
deleted
inserted
replaced
355:3c7338aff6a8 | 356:42d416af5030 |
---|---|
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 |