add crude damage limits, make world executable
authorPaul Brossier <piem@altern.org>
Sun, 6 Nov 2005 11:19:50 +0000 (11:19 +0000)
committerPaul Brossier <piem@altern.org>
Sun, 6 Nov 2005 11:19:50 +0000 (11:19 +0000)
add crude damage limits, make world executable

python/aubiopitch

index 44663abbf9e7b7d8b8ab3406f24d30d6a93de68e..2060d0e64b227847a229d3123792efcce656e3d2 100755 (executable)
@@ -107,6 +107,9 @@ else:
                         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: