Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -107,6 +107,9 @@ else: · 106 unmodified lines | ||
| 107 | 107 | omode=options.omode, |
| 108 | 108 | bufsize=bufsize,hopsize=hopsize, |
| 109 | 109 | silence=silence)) |
| 110 | + for j in range(len(pitch[i])): | |
| 111 | + if pitch[i][j] > 1500 or pitch[i][j] < 40: | |
| 112 | + pitch[i][j] = 0.; | |
| 110 | 113 | |
| 111 | 114 | ## take back system delay |
| 112 | 115 | #if delay != 0: |