|
From: Lasse Kärkkäi. <tr...@us...> - 2011-01-24 14:19:54
|
Module: editor
Branch: master
Commit: 231213a306c8587d5de3e00a4600c8ef56a0f081
Author: Lasse Karkkainen <tro...@tr...>
Date: Mon Jan 24 15:19:43 2011 +0100
Revert accidentally committed debug code
---
pitchvis.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/pitchvis.cc b/pitchvis.cc
index 9b45539..d3b1678 100644
--- a/pitchvis.cc
+++ b/pitchvis.cc
@@ -40,7 +40,7 @@ void PitchVis::run()
curX = 0;
for (std::vector<float> data(step*2); mpeg.audioQueue(&*data.begin(), &*data.end(), curX * step * 2); ++curX) {
// Mix stereo into mono
- for (unsigned i = 0; i < step; ++i) data[i] = data[2*i]; //0.5 * (data[2*i] + data[2*i + 1]);
+ for (unsigned i = 0; i < step; ++i) data[i] = 0.5 * (data[2*i] + data[2*i + 1]);
// Process
analyzer.input(&data[0], &data[step]);
analyzer.process();
|