Mercurial > hg > nnls-chroma
diff NNLSChroma.cpp @ 120:7a8956e903e1 monophonicness
minor changes for fewer warnings
author | matthiasm |
---|---|
date | Fri, 15 Apr 2011 10:01:53 +0000 |
parents | c4d1208e5ea9 |
children | 21181297da99 |
line wrap: on
line diff
--- a/NNLSChroma.cpp Thu Mar 31 14:59:11 2011 +0100 +++ b/NNLSChroma.cpp Fri Apr 15 10:01:53 2011 +0000 @@ -67,6 +67,12 @@ OutputList list; // Make chroma names for the binNames property + + const char* notenames[24] = { + "A (bass)","Bb (bass)","B (bass)","C (bass)","C# (bass)","D (bass)","Eb (bass)","E (bass)","F (bass)","F# (bass)","G (bass)","Ab (bass)", + "A","Bb","B","C","C#","D","Eb","E","F","F#","G","Ab"}; + + vector<string> chromanames; vector<string> bothchromanames; for (int iNote = 0; iNote < 24; iNote++) { @@ -284,8 +290,7 @@ cerr << endl << "[NNLS Chroma Plugin] Tuning Log-Frequency Spectrogram ... "; float tempValue = 0; - float dbThreshold = 0; // relative to the background spectrum - float thresh = pow(10,dbThreshold/20); + int count = 0;