annotate dsp/sinewin.m @ 61:eff6bddf82e3 tip

Finally implemented perceptual brightness thing.
author samer
date Sun, 11 Oct 2015 10:20:42 +0100
parents c3b0cd708782
children
rev   line source
samer@32 1 function y = sinewin(N)
samer@32 2 % SINEWIN Sine window.
samer@32 3 % y = sinewin(N)
samer@32 4 %
samer@32 5 % Used in MDCT transform for TDAC
samer@32 6 % Maximum length, maximum overlap sine window
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 % ------- sinewin.m ----------------------------------------
samer@32 12 % Marios Athineos, marios@ee.columbia.edu
samer@32 13 % http://www.ee.columbia.edu/~marios/
samer@32 14 % Copyright (c) 2002 by Columbia University.
samer@32 15 % All rights reserved.
samer@32 16 % ----------------------------------------------------------
samer@32 17
samer@32 18 x = (0:(N-1)).';
samer@32 19 y = sin(pi*(x+0.5)/N);