Revision as of 12:39, 4 September 2008 by Jkkietzm (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

MATLAB

%Justin Kietzman
%jkkietzm@purdue.edu
%Hidden Messages

%Please store the jpforward.wav in your current working directory

%Clear all variables and workspace
clc
clear

%Useful Information
FILE = 'jpforward.wav';
delta = 44100; %Given to us in Tips sheet


%use wavread to read jpforward file
%JP = wavread('c:\path\to\file\filename.wav');

JP = wavread(FILE);
JPbackwards = flipud(JP);

%Play extracted Song
%I have no idea what he is actually saying
%wavplay(JP, delta);

fprintf('Replay the Song Backwards!');
%Commented Out line to listen to other versions
%wavplay(JPbackwards, delta);

slow = delta*.5;
%Slow it Down
wavplay(JPbackwards, slow);
%"It's my voice" ?? Extracted message
wavwrite(JPbackwards, 1/slow, 32, 'hw1_2JPbackwards.wav'); 

Media:hw1.2JPSlowBackwards_ECE301Fall2008mboutin

Alumni Liaison

To all math majors: "Mathematics is a wonderfully rich subject."

Dr. Paul Garrett