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

Ph.D. 2007, working on developing cool imaging technologies for digital cameras, camera phones, and video surveillance cameras.

Buyue Zhang