diff options
author | Walter Bender <walter.bender@gmail.com> | 2012-06-23 20:23:35 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2012-06-23 20:23:35 (GMT) |
commit | 9889aa1f1eef63acd4e6c50acc78b301a92e475a (patch) | |
tree | ba70871c83458e2977d0bb8313e846da0e61a5cd | |
parent | 71f6869f37b9eab59c80355e974a82ea9611d476 (diff) |
fine-tuning pitch tracking
-rw-r--r-- | drawwaveform.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drawwaveform.py b/drawwaveform.py index 9744af8..333ef68 100644 --- a/drawwaveform.py +++ b/drawwaveform.py @@ -491,8 +491,8 @@ class DrawWaveform(gtk.DrawingArea): # Interpolate a, b, c = \ lines[n - 1][0], lines[n][0], lines[n + 1][0] - x = b - (0.5 * a / (a + b + c)) + ( - 0.5 * c / (a + b + c)) + x = b - (a / float(a + b + c)) + ( + c / float(a + b + c)) x *= scale if x > A0 and x < C8: self.activity.tuning_toolbar.label.set_markup( |