samer@32: samer@32: % OGGWIN Ogg-vorbis window. samer@32: % y = oggwin(N) samer@32: % samer@32: % Used in MDCT transform for TDAC samer@32: % The window used in Ogg-Vorbis open source codec samer@32: % samer@32: % N: length of window to create samer@32: % y: the window in column samer@32: samer@32: % ------- oggwin.m ----------------------------------------- samer@32: % Marios Athineos, marios@ee.columbia.edu samer@32: % http://www.ee.columbia.edu/~marios/ samer@32: % Copyright (c) 2004 by Columbia University. samer@32: % All rights reserved. samer@32: % ---------------------------------------------------------- samer@32: samer@32: function y = oggwin(N) samer@32: x = (0:(N-1)).'; samer@32: y = sin(0.5*pi*sin(pi*(x+0.5)/N).^2);