<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Excellent, thanks. One reason I'm wondering is that many definitions of window functions in DSP texts and online define Hann as something like 0.5*(1 - cos((2*pi*n)/(N - 1))), which is the symmetric version, 0 at both ends. With overlap-add it puts a repeated value at both peak and trough, but still with the FFT periodicity.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 9, 2016 at 7:02 AM, katja <span dir="ltr"><<a href="mailto:katjavetter@gmail.com" target="_blank">katjavetter@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Matt,<br>
<br>
What I remember from FFT experiments is, a 'periodic' Hann window<br>
(asymmetric) gives best results for overlap-add. You can think of the<br>
window as two functions: the DC component preserves the original<br>
signal, while the cosine component produces sum- and difference<br>
frequencies which cancel each other in subsequent overlaps after IFFT.<br>
Long story and illustrations here:<br>
<br>
<a href="http://www.katjaas.nl/FFTwindow/FFTwindow&filtering.html" rel="noreferrer" target="_blank">http://www.katjaas.nl/FFTwindow/FFTwindow&filtering.html</a><br>
<br>
Katja<br>
<div><div class="h5"><br>
<br>
On Sat, Jan 9, 2016 at 6:39 AM, Matt Barber <<a href="mailto:brbrofsvl@gmail.com">brbrofsvl@gmail.com</a>> wrote:<br>
> Hi list, quick DSP question.<br>
><br>
> In I02.Hann.window.pd there is a Hann window computed by running an [osc~]<br>
> for one cycle over 512 samples. Doing it this way is simple but it means<br>
> that it doesn't taper all the way to 0 on the right (the next value of the<br>
> oscillator after writing the table is 0). I don't know why I hadn't thought<br>
> of this before, but is this asymmetry mathematically optimal for windowing<br>
> of a single frame? What about in an overlap-add context? I'm trying to<br>
> understand the logic, so I'm not too worried about whether it makes a<br>
> practical difference. A period of 511 samples would be symmetric and<br>
> 0-valued at both ends, but there would be no "middle" value at unity.<br>
><br>
> What's the best way to think of this?<br>
><br>
> Matt<br>
><br>
</div></div>> _______________________________________________<br>
> <a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -><br>
> <a href="http://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
><br>
</blockquote></div><br></div>