Hi there,<br><br>In the following code ifft.last() is sometimes larger than 1, but when the input signal has unity gain, it shouldn&#39;t be like this. Actually, what happens, I think, is that the amplification is proportional to the overlap factor. So should setting 
ifft.gain to hopsize/fftsize be the correct way to handle this?<br><br>thanks <br><br>eduard<br><br><br>SinOsc s =&gt; FFT fft =&gt; IFFT ifft =&gt; dac; //blackhole;<br>1024 =&gt; int fftsize =&gt; fft.size;<br>fftsize/4 =&gt; int hopsize;
<br>fftsize/2 =&gt; int specsize;<br>Windowing.blackmanHarris(fftsize) =&gt; fft.window =&gt; ifft.window;<br>complex spec[ specsize ];<br>fun void transform()<br>{<br>&nbsp;&nbsp;&nbsp; fft.upchuck();<br>&nbsp;&nbsp;&nbsp; fft.spectrum( spec );<br>&nbsp;&nbsp;&nbsp; 
ifft.transform( spec );<br>&nbsp;&nbsp;&nbsp; hopsize::samp =&gt; now;<br>}<br><br>while( true )<br>{<br>&nbsp;&nbsp;&nbsp; if( Std.fabs(ifft.last() &gt; 1) ) <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt;&lt; ifft.last() &gt;&gt;&gt;;<br>&nbsp;&nbsp;&nbsp; transform();<br>}<br>