Mercurial > hg > audio-time-warp
view chromagramm/ChordDetect.h @ 3:d0242d0a48e8
I've changed timeWarp.h to have a capital T: TimeWarp.h as befits a class. Also added destructor method
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Thu, 19 May 2011 16:23:49 +0100 |
parents | 572c856e38ac |
children |
line wrap: on
line source
/* * ChordDetect.h * ChordDetect * * Created by Adam Stark on 28/04/2008. * Copyright 2008 __MyCompanyName__. All rights reserved. * */ #ifndef CHORDDETECT_H #define CHORDDETECT_H #include "fftw3.h" class ChordDetect { public: ChordDetect(); // constructor ~ChordDetect(); // destructor void C_Detect(float c[],float c_low[]); int root; int quality; int intervals; private: void makeprofiles(); void calculateweightings(); void classifychromagram(); float calcchordvalue(float c[],float T[],float biasval, float N); float max(float array[],int length); int minindex(float array[],int length); float chroma[12]; float chroma_low[12]; float weight_sus[12]; float weight_aug[12]; float profiles[108][12]; float w_profile[12]; float chord[108]; float bias; }; #endif