(Sound Files)
(Matlab Code)
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
  
 
== Matlab Code ==
 
== Matlab Code ==
 +
<pre>
 +
%Paul Scheffler
 +
%phscheff@purdue.edu
 +
%ECE 301 HW1-1.m
 +
 +
clear
 +
clc
 +
 +
%Open the provided file
 +
[data,fs,nbits]=wavread('jpforward.wav');
 +
 +
%Play the file
 +
fprintf('Playing original')
 +
wavplay(data,fs);
 +
 +
%Reverse the file
 +
rdata=flipud(data);
 +
 +
fprintf('Playing reverse');
 +
wavplay(rdata,fs);
 +
wavwrite(rdata,fs,nbits,'jpreverse.wav');
 +
 +
%Slow it down down down down down(YEAH! you push it.)
 +
fprintf('Playing reverse + slow');
 +
wavwrite(rdata,fs/2,nbits,'jpreverseslow.wav');
 +
wavplay(rdata,fs/2);
 +
</pre>

Latest revision as of 12:57, 4 September 2008

Sound Files and Lyrics

Original. Reverse. Reverse Slow.

In the reverse version he appears to say "This life of mine". In the half speed reverse version you can make a the words "Take this life of mine".

Matlab Code

%Paul Scheffler
%phscheff@purdue.edu
%ECE 301 HW1-1.m

clear
clc

%Open the provided file
[data,fs,nbits]=wavread('jpforward.wav');

%Play the file
fprintf('Playing original')
wavplay(data,fs);

%Reverse the file
rdata=flipud(data);

fprintf('Playing reverse');
wavplay(rdata,fs);
wavwrite(rdata,fs,nbits,'jpreverse.wav');

%Slow it down down down down down(YEAH! you push it.)
fprintf('Playing reverse + slow');
wavwrite(rdata,fs/2,nbits,'jpreverseslow.wav');
wavplay(rdata,fs/2);

Alumni Liaison

Questions/answers with a recent ECE grad

Ryne Rayburn