(New page: <pre> %Adrian Delancy part 2 of Hw1 clear all %Reading in the song to a vector [x,Fs,nbits]=wavread('jpforward.wav'); wavplay(x,Fs,'async') %Reversing the song changing x[n] to x[-n] y=fli...)
 
Line 14: Line 14:
 
wavwrite(y,Fs/2,'Newjudaspriest');
 
wavwrite(y,Fs/2,'Newjudaspriest');
 
</pre>
 
</pre>
 +
[[Newjudaspriest_ECE301Fall2008mboutin.wav]]

Revision as of 13:56, 4 September 2008

%Adrian Delancy part 2 of Hw1
clear all
%Reading in the song to a vector
[x,Fs,nbits]=wavread('jpforward.wav');
wavplay(x,Fs,'async')
%Reversing the song changing x[n] to x[-n]
y=flipud(x);
wavplay(y,Fs,'async')

%Changin signal to x[-0.5n] which effectivley means half the sample rate
wavplay(y,Fs/2,'async')

wavwrite(y,Fs/2,'Newjudaspriest');

Newjudaspriest_ECE301Fall2008mboutin.wav

Alumni Liaison

To all math majors: "Mathematics is a wonderfully rich subject."

Dr. Paul Garrett