(New page: == MATLAB Code == <pre> % Mark Frankosky (mfrankos@purdue.edu) % ECE 301 HW 1.2 % This file will read in the .wav file 'jpforward.wav' and play it back % with a sample frequency of 44100...)
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
== Sound Files ==
 +
Here are the links to the sound files for the song played backwards at 44100Hz, 22050Hz, and 11025Hz.  The code also plays it foward, but i didnt feel like making a sound file for that seeing how its on the main homework page.  Its hard to hear what is being said when its playing backwards...sounds something like 'I hurt myself'  cant really determine what it is though.
 +
 +
[[Media:Example.ogg _ECE301Fall2008mboutin| Sound File 1 44100Hz]]
 +
 +
[[Media:Example2.ogg _ECE301Fall2008mboutin| Sound File 2 22050Hz]]
 +
 +
[[Media:Example3..ogg _ECE301Fall2008mboutin| Sound File 3 11025Hz]]
 +
 
== MATLAB Code ==
 
== MATLAB Code ==
 
<pre>
 
<pre>
Line 29: Line 38:
 
fprintf('backwards at 11025 Hz...\n');
 
fprintf('backwards at 11025 Hz...\n');
 
wavplay(wavBackwards, Fs3);
 
wavplay(wavBackwards, Fs3);
 +
</pre>

Latest revision as of 16:04, 4 September 2008

Sound Files

Here are the links to the sound files for the song played backwards at 44100Hz, 22050Hz, and 11025Hz. The code also plays it foward, but i didnt feel like making a sound file for that seeing how its on the main homework page. Its hard to hear what is being said when its playing backwards...sounds something like 'I hurt myself' cant really determine what it is though.

Sound File 1 44100Hz

Sound File 2 22050Hz

Sound File 3 11025Hz

MATLAB Code

% Mark Frankosky (mfrankos@purdue.edu)
% ECE 301 HW 1.2

% This file will read in the .wav file 'jpforward.wav' and play it back 
% with a sample frequency of 44100 Hz, and then flip the file
% and play taht back at a sample frequecy of 44100Hz, 22050Hz, and 11025Hz
% respectively
% 
% For this to work locally you will need the file 'jpforward.wav' stored in
% the same directory taht you will run the code from.

Fname = 'jpforward.wav';
Fs1   = 44100;
Fs2   = 22050;
Fs3   = 11025;
Fs4   = 8000;

wavFoward     = wavread(Fname);
wavBackwards  = flipud(wavFoward);

fprintf('Foward at 44100 Hz...\n');
wavplay(wavFoward,Fs1);
fprintf('Backwards at 44100 Hz...\n');
wavplay(wavBackwards, Fs1);
fprintf('Backwards at 22050 Hz...\n');
wavplay(wavBackwards, Fs2);
fprintf('backwards at 11025 Hz...\n');
wavplay(wavBackwards, Fs3);

Alumni Liaison

has a message for current ECE438 students.

Sean Hu, ECE PhD 2009