shithub: aubio

Download patch

ref: a49b0bcde268e8e4f5dee449ad83fcbc30f254b6
parent: d2823735526b3b6ca18d5ea549daff4fd4a673d3
author: Paul Brossier <piem@altern.org>
date: Sun Nov 6 06:19:50 EST 2005

add crude damage limits, make world executable
add crude damage limits, make world executable


--- a/python/aubiopitch
+++ b/python/aubiopitch
@@ -107,6 +107,9 @@
                         omode=options.omode,
                         bufsize=bufsize,hopsize=hopsize,
                         silence=silence))
+                for j in range(len(pitch[i])):
+                        if pitch[i][j] > 1500 or pitch[i][j] < 40:
+                                pitch[i][j] = 0.;
 
 ## take back system delay
 #if delay != 0: