(Matlab Code)
 
Line 10: Line 10:
  
 
%read in the song from the .wav file
 
%read in the song from the .wav file
data = wavread('Jpforward.wav');
+
[data, Fs, nbits] = wavread('Jpforward.wav');
  
 
%reverse the song
 
%reverse the song
Line 18: Line 18:
 
wavplay(data, 44100);
 
wavplay(data, 44100);
  
 +
%output the file
 +
wavwrite(data, Fs, 'serekson_jpbackward.wav')
  
 
%play the song backwards a little slower
 
%play the song backwards a little slower

Latest revision as of 16:26, 5 September 2008

Judas Priest Backwards

Media:serekson_jpbackward.wav‎_ECE301Fall2008mboutin

Matlab Code

%Spencer Erekson
%ECE 301 Homework 1 Problem 2
%September 4, 2008

%read in the song from the .wav file
[data, Fs, nbits] = wavread('Jpforward.wav');

%reverse the song
data = flipud(data);

%play the song backwards at normal speed
wavplay(data, 44100);

%output the file
wavwrite(data, Fs, 'serekson_jpbackward.wav')

%play the song backwards a little slower
wavplay(data, 32000);

%you can hear him say something like "I took my life"

Alumni Liaison

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

Dr. Paul Garrett