summaryrefslogtreecommitdiff
path: root/libs/vamp-pyin/MonoPitch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/vamp-pyin/MonoPitch.cpp')
-rw-r--r--libs/vamp-pyin/MonoPitch.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/vamp-pyin/MonoPitch.cpp b/libs/vamp-pyin/MonoPitch.cpp
index 01830f5419..ae771940d5 100644
--- a/libs/vamp-pyin/MonoPitch.cpp
+++ b/libs/vamp-pyin/MonoPitch.cpp
@@ -3,7 +3,7 @@
/*
pYIN - A fundamental frequency estimator for monophonic audio
Centre for Digital Music, Queen Mary, University of London.
-
+
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the
@@ -40,15 +40,15 @@ MonoPitch::process(const vector<vector<pair<double, double> > > pitchProb)
{
obsProb.push_back(hmm.calculateObsProb(pitchProb[iFrame]));
}
-
+
vector<double> *scale = new vector<double>(0);
-
- vector<float> out;
-
+
+ vector<float> out;
+
// std::cerr << "before Viterbi decoding" << obsProb.size() << "ng" << obsProb[1].size() << std::endl;
vector<int> path = hmm.decodeViterbi(obsProb, scale);
// std::cerr << "after Viterbi decoding" << std::endl;
-
+
for (size_t iFrame = 0; iFrame < path.size(); ++iFrame)
{
// std::cerr << path[iFrame] << " " << hmm.m_freqs[path[iFrame]] << std::endl;