changeset 33:b8cc6a9720a0 tony

scale bug fixed
author matthiasm
date Fri, 24 Jan 2014 12:20:23 +0000
parents cd63e578a0a2
children 5d43ce0eeeb8
files LocalCandidatePYIN.cpp MonoPitch.cpp
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/LocalCandidatePYIN.cpp	Fri Jan 24 12:18:11 2014 +0000
+++ b/LocalCandidatePYIN.cpp	Fri Jan 24 12:20:23 2014 +0000
@@ -361,7 +361,6 @@
         {
             std::ostringstream convert;
             convert << actualCandidateNumber++;
-            // f.label = sprintf (buffer, "%i", iCandidate);
             f.label = convert.str();
             std::cerr << freqNumber[iCandidate] << " " << freqMean[iCandidate] << std::endl;
             for (size_t iFrame = 0; iFrame < nFrame; ++iFrame) 
--- a/MonoPitch.cpp	Fri Jan 24 12:18:11 2014 +0000
+++ b/MonoPitch.cpp	Fri Jan 24 12:20:23 2014 +0000
@@ -41,7 +41,7 @@
         obsProb.push_back(hmm.calculateObsProb(pitchProb[iFrame]));
     }
     
-    vector<double> *scale = new vector<double>(pitchProb.size());
+    vector<double> *scale = new vector<double>(0);
     
     vector<float> out;