Revision as of 16:27, 4 September 2008 by Kschrems (Talk)

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

Reversed Judas Priest

  • Reversed Normally

here!

  • Reversed with Padding

here!

Results

When the song is played forwards, the words are "Beyond the realms of death." When reversed, the band sings "I took my life."



Matlab Code

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Kathleen Schremser  %
% ECE 301  %
% Homework 1, due Friday, September 5, 2008  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Clear the screen
clear
clc

% Define the filename, assuming the file is called "jpforward", it is a
% .wav file, and it is in the PWD
file = 'jpforward.wav';

% Convert music (?) to Matlab data:
% data = digital signal, Fs = Frequency, nbits = number of bits per sample
[data, Fs, nbits] = wavread(file);

% Play the file
%wavplay(data, Fs)

% Find the length of the data, and save it as two different variables (to
% be used while looping)
L = length(data);
Ll = L;

% Create two arrays that will be able to hold the data once reversed, one
% for the regular reversal and one for the padded reversal
Reverse = ones(size(data));
Reverse2 = ones(size(data*2)+1);

% Reverse the data and play the result
for i = 1:L

   Reverse(i) = data(Ll);
   Ll = Ll - 1;

end
%wavplay(Reverse, Fs)

% Now pad the data with 0s and play the result i=1; for j = 1:L

   Reverse2(i) = Reverse(j);
   Reverse2(i+1) = 0;
   i = i + 2;

end
%wavplay(Reverse2, Fs)

% Create the file with the reversed sound
wavwrite(Reverse, Fs, 'jpreverse1')
wavwrite(Reverse2, Fs, 'jpreverse2')

Alumni Liaison

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

Jeff McNeal