(New page: % Hetong Li(li186@purdue.edu) % ECE301 HW1.2 % Date:09/02/08 %Read the wav file in matlab fs=44100;%sample frequency [jp,fs,bits]=wavread('jpforward.wav'); wavplay(jp,fs);%forward version...) |
|||
Line 1: | Line 1: | ||
+ | <pre> | ||
% Hetong Li(li186@purdue.edu) | % Hetong Li(li186@purdue.edu) | ||
% ECE301 HW1.2 | % ECE301 HW1.2 | ||
Line 22: | Line 23: | ||
%The forward message is "Beyond the realm of death". | %The forward message is "Beyond the realm of death". | ||
%The backward message is "I took my life". | %The backward message is "I took my life". | ||
+ | </pre> |
Latest revision as of 17:34, 1 September 2008
% Hetong Li(li186@purdue.edu) % ECE301 HW1.2 % Date:09/02/08 %Read the wav file in matlab fs=44100;%sample frequency [jp,fs,bits]=wavread('jpforward.wav'); wavplay(jp,fs);%forward version pause(1) jpbak=flipud(jp); %reverse the signal wavplay(jpbak,fs);%play the reversed version pause(2) %Slow version with half frequency slowfs=fs/2; wavplay(y,slowfs); pause(3) %fast version with doubled frequency fastfs=fs*2; wavplay(y,fastfs); %The forward message is "Beyond the realm of death". %The backward message is "I took my life".