Mercurial > hg > pyin
comparison PYinVamp.cpp @ 67:d1f89559321a tony
undid that change
author | matthiasm |
---|---|
date | Wed, 02 Apr 2014 17:42:56 +0100 |
parents | e2bbf853513d |
children | 01057d57dd9a |
comparison
equal
deleted
inserted
replaced
66:e2bbf853513d | 67:d1f89559321a |
---|---|
368 rms = sqrt(rms); | 368 rms = sqrt(rms); |
369 float lowAmp = 0.1; | 369 float lowAmp = 0.1; |
370 bool isLowAmplitude = (rms < lowAmp); | 370 bool isLowAmplitude = (rms < lowAmp); |
371 float factor = ((rms+0.01*lowAmp)/(1.01*lowAmp)); | 371 float factor = ((rms+0.01*lowAmp)/(1.01*lowAmp)); |
372 // std::cerr << rms << " " << factor << std::endl; | 372 // std::cerr << rms << " " << factor << std::endl; |
373 factor *= factor; | |
374 | 373 |
375 Yin::YinOutput yo = m_yin.processProbabilisticYin(dInputBuffers); | 374 Yin::YinOutput yo = m_yin.processProbabilisticYin(dInputBuffers); |
376 delete [] dInputBuffers; | 375 delete [] dInputBuffers; |
377 | 376 |
378 // First, get the things out of the way that we don't want to output | 377 // First, get the things out of the way that we don't want to output |
457 | 456 |
458 fs[m_oSmoothedPitchTrack].push_back(f); | 457 fs[m_oSmoothedPitchTrack].push_back(f); |
459 } | 458 } |
460 | 459 |
461 // MONO-NOTE STUFF | 460 // MONO-NOTE STUFF |
462 // std::cerr << "Mono Note Stuff" << std::endl; | 461 std::cerr << "Mono Note Stuff" << std::endl; |
463 MonoNote mn; | 462 MonoNote mn; |
464 std::vector<std::vector<std::pair<double, double> > > smoothedPitch; | 463 std::vector<std::vector<std::pair<double, double> > > smoothedPitch; |
465 for (size_t iFrame = 0; iFrame < mpOut.size(); ++iFrame) { | 464 for (size_t iFrame = 0; iFrame < mpOut.size(); ++iFrame) { |
466 std::vector<std::pair<double, double> > temp; | 465 std::vector<std::pair<double, double> > temp; |
467 if (mpOut[iFrame] > 0) | 466 if (mpOut[iFrame] > 0) |