Revision as of 16:03, 4 September 2008 by Khoyt (Talk)

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

Sound File

still havn't quite figured out how to post sound file yet, working on it.... kind of sounds like "it's time to die" though....

Matlab Code

%kevin Hoyt
%ECE 301 HW1
%First convert the file into a matrix

jpforward = wavread('jpforward.wav');

%now we make a place holding matrix

jpbackward = zeros([751000,1]);

for k = 1:1:751000;
    
   jpbackward(751001-k) = jpforward(k);
end

%wavplay(jpbackward,44100);

%now to slow it down we insert a zero after every other number
slowjpbackwards = zeros([1502000,1]); %anotherplace holding matrix
for k = 1:1:751000;
    slowjpbackwards(2*k-1) = jpbackward(k);
    slowjpbackwards(2*k) = 0;
end

wavplay(slowjpbackwards,44100);

Alumni Liaison

EISL lab graduate

Mu Qiao