if (!specmode) { // "normal" FFT memset(specbuf,0,SPECWIDTH*SPECHEIGHT); for (x=0;xSPECHEIGHT) y=SPECHEIGHT; // cap it if (x && (y1=(y+y1)/2)) // interpolate from previous to make the display smoother while (--y1>=0) specbuf[y1*SPECWIDTH+x*2-1]=y1+1; y1=y; while (--y>=0) specbuf[y*SPECWIDTH+x*2]=y+1; // draw level }