Here is my sound file Media:Jpforward_ECE301Fall2008mboutin.wav
Insert non-formatted text here% Hail Purdue. The 1st part. %Name:Vivek Ravi %notes: %Eb,F,G,Ab,Bb,B,C5,Db5 %frequencies of the notes being used:%Corresponding Frequencies: http://www.phy.mtu.edu/~suits/notefreqs.html Eb=311.13; F=349.23; G=392; Ab=415.30; Bb=466.16; B=493.88; c5=523.25; Db5=554.37; %time duration delta=0.0005; q=.25; h=0.5; Fu=1; eig=0.125; threforth=0.75; notes=[Eb,F,G,Ab,Bb,c5,c5,Db5,Db5,Ab,Bb,B,c5]; length=[h,q,q,eig,eig,q,q,q,eig,eig,q,eig,eig,threforth]; %song unaltered for i=1:13 t=0:delta:length(i); z = sin(2*pi*notes(i)*t); sound(z,1/delta); end pause(2); %song twice as fast for i = 1:13 t = 0:delta:length(i)/2; z = sin(2*pi*notes(i)*t); sound (z, 1/delta); end