Mercurial > hg > nnls-chroma
diff Chordino.cpp @ 159:f01e5707b804
Typo fix
author | Chris Cannam |
---|---|
date | Fri, 05 Dec 2014 10:46:04 +0000 |
parents | 5c1a25b3daf0 |
children | ed3e7d4bcdaf |
line wrap: on
line diff
--- a/Chordino.cpp Fri Dec 05 10:45:27 2014 +0000 +++ b/Chordino.cpp Fri Dec 05 10:46:04 2014 +0000 @@ -185,7 +185,7 @@ OutputDescriptor chordnotes; chordnotes.identifier = "chordnotes"; chordnotes.name = "Note Representation of Chord Estimate"; - chordnotes.description = "A simple represenation of the estimated chord with bass note (if applicable) and chord notes."; + chordnotes.description = "A simple representation of the estimated chord with bass note (if applicable) and chord notes."; chordnotes.unit = "MIDI units"; chordnotes.hasFixedBinCount = true; chordnotes.binCount = 1; @@ -534,7 +534,6 @@ vector<double> scale; vector<int> chordpath = ViterbiPath(init, trans, chordogram, delta, &scale); - Feature chord_feature; // chord estimate chord_feature.hasTimestamp = true; chord_feature.timestamp = timestamps[0]; @@ -543,7 +542,6 @@ chordchange[0] = 0; for (int iFrame = 1; iFrame < (int)chordpath.size(); ++iFrame) { - // cerr << chordpath[iFrame] << endl; if (chordpath[iFrame] != oldchord ) { // chord Feature chord_feature; // chord estimate @@ -597,7 +595,7 @@ } cerr << "done." << endl; - + for (int iFrame = 0; iFrame < nFrame; iFrame++) { Feature chordchange_feature; chordchange_feature.hasTimestamp = true; @@ -609,6 +607,5 @@ // for (int iFrame = 0; iFrame < nFrame; iFrame++) cerr << fsOut[m_outputHarmonicChange][iFrame].values[0] << endl; - return fsOut; }