Mercurial > hg > ishara
annotate dsp/oggwin.m @ 47:82075c94eed1
adding a bunch of stuff, including graphics and pitch toolboxes.
author | samer |
---|---|
date | Sat, 17 Jan 2015 15:20:35 +0000 |
parents | c3b0cd708782 |
children |
rev | line source |
---|---|
samer@32 | 1 |
samer@32 | 2 % OGGWIN Ogg-vorbis window. |
samer@32 | 3 % y = oggwin(N) |
samer@32 | 4 % |
samer@32 | 5 % Used in MDCT transform for TDAC |
samer@32 | 6 % The window used in Ogg-Vorbis open source codec |
samer@32 | 7 % |
samer@32 | 8 % N: length of window to create |
samer@32 | 9 % y: the window in column |
samer@32 | 10 |
samer@32 | 11 % ------- oggwin.m ----------------------------------------- |
samer@32 | 12 % Marios Athineos, marios@ee.columbia.edu |
samer@32 | 13 % http://www.ee.columbia.edu/~marios/ |
samer@32 | 14 % Copyright (c) 2004 by Columbia University. |
samer@32 | 15 % All rights reserved. |
samer@32 | 16 % ---------------------------------------------------------- |
samer@32 | 17 |
samer@32 | 18 function y = oggwin(N) |
samer@32 | 19 x = (0:(N-1)).'; |
samer@32 | 20 y = sin(0.5*pi*sin(pi*(x+0.5)/N).^2); |