(Removing all content from page)
Line 1: Line 1:
 +
<pre>
 +
%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
 +
</pre>

Revision as of 11:55, 4 September 2008

%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

Alumni Liaison

Questions/answers with a recent ECE grad

Ryne Rayburn