Revision as of 09:59, 5 September 2008 by Drecord (Talk)

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

Media:jpbackward_drecord_ECE301Fall2008mboutin.wav

%%%HW 1.2: Judas Priest Played Backwards %%%
%David Record
%September 4th 2008

%Setup
clear;
clc;

%Read Data from File
[data, sample_rate, bits_per_sample] = wavread('jpforward.wav');

%Play Forward
wavplay(data, sample_rate);

%Reverse the song
reversed = flipud(data);

%Play the reversed song
wavplay(reversed, sample_rate);
%He says, "we all have to die"?

%Play slower
wavplay(reversed, sample_rate/1.2);
%doesn't really help...

%Create file of reversed song.
wavwrite(reversed,sample_rate,bits_per_sample,'jpbackward.wav');

Alumni Liaison

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

Jeff McNeal