Revision as of 21:54, 24 June 2009 by Jwyu (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

t=0.0001; %this is the time increment

t1=0:t:.25; t2=0:t:.75; t3=0:t:.5; t4=0:t:1; % different periods

song = [sin(2*pi*330*t1) sin(2*pi*330*t3) sin(2*pi*330*t3) sin(2*pi*330*t3) sin(2*pi*330*t3) sin(2*pi*392*t4) sin(2*pi*196*t4) sin(2*pi*330*t2) sin(2*pi*196*t2) sin(2*pi*165*t2) sin(2*pi*220*t3) sin(2*pi*247*t3) sin(2*pi*233*t1) sin(2*pi*220*t3)]; % the melody of [E E E G C E G C Glower Elower Alower Blower A#lower Alower]

sound (song,1/t);

Alumni Liaison

Prof. Math. Ohio State and Associate Dean
Outstanding Alumnus Purdue Math 2008

Jeff McNeal