diff --git a/src/fft.c b/src/fft.c index 256d5ec..e2fe23a 100644 --- a/src/fft.c +++ b/src/fft.c @@ -119,8 +119,8 @@ int i = 0; int j = 0; int amp = 0; - int first = 1; - int last = 2; + int first = 0; + int last = 1; int div = 43; double f = bf; @@ -150,6 +150,7 @@ amp = 0; i += FOCUS; + if(i > max) break; f = next_bfreq(f, oratio); }