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

Correspondence Chess Grandmaster and Purdue Alumni

Prof. Dan Fleetwood