Line 1: | Line 1: | ||
− | + | [[Media:jpbackwards_ECE301Fall2008mboutin.wav]] | |
<pre> | <pre> | ||
%Cory Ocker (cocker@purdue.edu) | %Cory Ocker (cocker@purdue.edu) |
Revision as of 11:56, 4 September 2008
Media:jpbackwards_ECE301Fall2008mboutin.wav
%Cory Ocker (cocker@purdue.edu) %9/5/08 HW1 %EE301 MWF 4:30 clear; clc; jp='./jpforward.wav'; %call file [forward,sample_rate,bits_per_sample]=wavread(jp); %reads the file backward=flipud(forward); %flips the file slowspeed=sample_rate/1.7; %used to slowdown the sound in reverse wavplay(forward,sample_rate); %plays the file forward wavplay(backward,slowspeed); %plays the file backwards wavwrite(backward,slowspeed,'jpbackwards.wav'); %writes the file as a wav