(New page: <pre> % Monil Goklani % September 5, 2008 % ECE301 HW1 part 2 clear; clc; % first we open the original file [forward,fs,nbits]=wavread('C:\Users\MONIL\Desktop\jpforward.wav'); wavplay(f...)
 
Line 1: Line 1:
 +
== Matlab code ==
 +
 +
 
<pre>
 
<pre>
 
% Monil Goklani
 
% Monil Goklani

Revision as of 18:06, 4 September 2008

Matlab code

% Monil Goklani
% September 5, 2008
% ECE301 HW1 part 2
 
clear;
clc;
% first we open the original file

[forward,fs,nbits]=wavread('C:\Users\MONIL\Desktop\jpforward.wav');
wavplay(forward,44100);

%now we reverse the song

reverse=flipud(forward);
wavplay(reverse,44100);
wavwrite(reverse,44100,'C:\Users\MONIL\Desktop\jpreverse.wav');

%now we play the reverse version slower by reducing the sampling rate

wavplay(reverse,22050);
wavwrite(reverse,22050,'C:\Users\MONIL\Desktop\jpslowreverse.wav');

Alumni Liaison

Ph.D. 2007, working on developing cool imaging technologies for digital cameras, camera phones, and video surveillance cameras.

Buyue Zhang