MATLAB Script

%header------------------------------------
%Benjamin Horst
%  September 2, 2008
%  ECE 301   ->   HW#1
%endheader---------------------------------
%start script------------------------------
%clear everything before running
clear
clc

%get data from file into array 'Forward'
FILE = './jpforward.wav';
[Forward,FS,NBITS]=wavread(FILE); %returns the sample rate (FS) in Hertz
    %and the number of bits per sample (NBITS) used to encode the
    %data in the file.

lengthA = size(Forward);
length = lengthA(1)
    
Reverse = ones(length * 2, 1);
for i=1:length
    d = 2*i -1;
    Reverse(d) = Forward(length-i+1);
    Reverse(d+1) = 0;
end
size(Reverse)
size(Forward)
wavplay(Forward, FS);
pause(3);
wavplay(Reverse, FS);

Results

I am really unsure of anything that the singer says.

I cannot tell what he says in the forward version. In the reversed version, I heard "It's the final fight," however, this is by no means definitive.

Alumni Liaison

Basic linear algebra uncovers and clarifies very important geometry and algebra.

Dr. Paul Garrett