clear all clc
%Austin Melnyk %ECE 301 HW 1.2 %play judas priest song forwards and backwards by flipping the array using %flipud, a matlab syntax.
[judas, rate, bits_per_sample] = wavread('Jpforward.wav');
wavplay(judas, rate);
%The song is played forward first to show the difference in their lyrics
pause(1)
priest = flipud(judas); sound(priest, rate);
%The song is then played backwards to reveal a barely audible hidden %message that may or may not be accidental.
%The forward message sounds just like part of the music, whereas the %backwards message is probably saying "I gave my life". (probably)
wavwrite(priest, 44100, 'priestbackwards.wav'); %writes the file