Line 9: | Line 9: | ||
wavplay(y,Fs,'async') | wavplay(y,Fs,'async') | ||
− | %Changin signal to x[-0.5n] | + | %Changin signal to x[-0.5n]: |
wavplay(y,Fs/2,'async') | wavplay(y,Fs/2,'async') | ||
Revision as of 13:00, 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]: wavplay(y,Fs/2,'async') wavwrite(y,Fs/2,'Newjudaspriest');