(New page: ==Message== Can't hear very clearly but it goes something something my life. ==MATLAB Code== % Caleb Tan % HW 1.2 % WavRead the File [Jpforward, Fs, nbits] = wavread('Jpforward.wa...) |
(→Message) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | ==Soundfile== | ||
+ | |||
+ | [[Media:Jpbackward_ECE301Fall2008mboutin.wav]] | ||
+ | |||
==Message== | ==Message== | ||
− | Can't hear very clearly but it | + | Can't hear very clearly but I think it says I took my life. |
==MATLAB Code== | ==MATLAB Code== | ||
Line 27: | Line 31: | ||
% Play it using a slower rate | % Play it using a slower rate | ||
− | sound(Jpforward, | + | sound(Jpforward, Fs/2); |
+ | |||
+ | |||
+ | % Write the sound file | ||
+ | |||
+ | wavwrite(Jpbackward, Fs/2,'jpbackward.wav'); |
Latest revision as of 16:16, 4 September 2008
Soundfile
Media:Jpbackward_ECE301Fall2008mboutin.wav
Message
Can't hear very clearly but I think it says I took my life.
MATLAB Code
% Caleb Tan
% HW 1.2
% WavRead the File
[Jpforward, Fs, nbits] = wavread('Jpforward.wav');
% Reverse the matrix using the flipud function
Jpbackward = flipud(Jpforward);
% Play the song backwards at the same speed
sound(Jpforward, Fs);
% Play it using a slower rate
sound(Jpforward, Fs/2);
% Write the sound file
wavwrite(Jpbackward, Fs/2,'jpbackward.wav');