From: Paul Brossier Date: Sun, 6 Nov 2005 11:19:50 +0000 (+0000) Subject: add crude damage limits, make world executable X-Git-Tag: bzr2git~819 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a49b0bcde268e8e4f5dee449ad83fcbc30f254b6;p=aubio.git add crude damage limits, make world executable add crude damage limits, make world executable --- diff --git a/python/aubiopitch b/python/aubiopitch index 44663abb..2060d0e6 100755 --- a/python/aubiopitch +++ b/python/aubiopitch @@ -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: