Line 1: Line 1:
 +
== MATLAB CODE ==
 +
 
<pre>
 
<pre>
 
%Danny Barjum
 
%Danny Barjum

Revision as of 15:22, 5 September 2008

MATLAB CODE

%Danny Barjum
%HW 1_2
%ECE 310
%Subliminal Message in a Song

clear
clc

%READ FILE
[fsng fs nbits] = wavread('jpforward.wav');

%PLAY SONG FORWARDS
wavplay(fsng, fs);

%FLIP SONG BACKWORDS
bsng = flipud(fsng);

%PLAY SONG BACKWARDS
wavplay(bsng, fs);

wavwrite(bsng, fs, nbits, 'bsng1.wav');

%PERSONAL TRANSLATION:
%"This world is mine" 

%PLAYIN SONG SLOWER
wavplay(bsng, fs / 1.15);

wavwrite(bsng, fs, nbits, 'bsng2.wav');

%PERSONAL TRANSLATION: SAME AS ABOVE


SONG FILES

Alumni Liaison

Correspondence Chess Grandmaster and Purdue Alumni

Prof. Dan Fleetwood