Line 17: Line 17:
 
backward_song = flipud(data);
 
backward_song = flipud(data);
 
sound(backward_song, .5*sample_rate);
 
sound(backward_song, .5*sample_rate);
 +
 +
%Save the wav file:
 +
wavwrite(backward_song,sample_rate,bits_per_sample,'JudasPriestbackward');
 +
  
  
Line 22: Line 26:
 
%when slowed down.  However, when played in reverse at half speed, it
 
%when slowed down.  However, when played in reverse at half speed, it
 
%sounds like he's saying "I took my life".
 
%sounds like he's saying "I took my life".
 
 
</pre>
 
</pre>

Latest revision as of 07:37, 5 September 2008

Media:JudasPriestbackward_ECE301Fall2008mboutin.wav

%Tyler Johnson
%September 3rd, 2008
%clear memory
clear;
%clear console
clc;

%Read a wav file:
[data, sample_rate, bits_per_sample] = wavread('JudasPriestforward');

%Play the data from a wav file:
wavplay(data, .75*sample_rate);

%Reverse the song
backward_song = flipud(data);
sound(backward_song, .5*sample_rate);

%Save the wav file:
wavwrite(backward_song,sample_rate,bits_per_sample,'JudasPriestbackward');



%When the song is played forward the lyrics are clearly jibberish, even
%when slowed down.  However, when played in reverse at half speed, it
%sounds like he's saying "I took my life".

Alumni Liaison

Questions/answers with a recent ECE grad

Ryne Rayburn