Revision as of 20:51, 4 September 2008 by Choi88 (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



Reversed: Media:HW1.2a_Jungu_Choi_ECE301Fall2008mboutin.wav
Reversed-slower: Media:HW1.2b_Jungu_Choi_ECE301Fall2008mboutin.wav


Matlab Code

%Normal Play

y = wavread('jpforward.wav');
wavplay(y,44100);

%Reverse Play
y2 = y;
for I=1:751000
    y2(I) = y(size(y,1)-I+1);
end
%wavplay(y2,44100);
wavwrite(y2,44100,'HW1.2a_Jungu_Choi.wav');

%wavplay(y2,22050);
wavwrite(y2,22050,'HW1.2b_Jungu_Choi.wav');
% Twice Faster

%y3 = 1:1:751000/2;
%for J=1:751000/2
%    y3(J) = y2(2*J);
%end
%wavplay(y3,44100);

Alumni Liaison

Prof. Math. Ohio State and Associate Dean
Outstanding Alumnus Purdue Math 2008

Jeff McNeal