I could hear only screaming. Sorry!!



%Name. Jayanth Athreya

% Following the HW tips  given:1) Open a new file.2)reverse it.

clc; 

clear; 

% wavread command converts the .wav file to the digital signal data x[n] 
% Let sample rate be A and Bitrate be B.
[Jpriest,A,B] = wavread('H:\pu.data\Desktop\jpforward.wav'); 


%digital signal x[n] can be heard because of the Waveplay command 

wavplay(Jpriest,A); 

% reversing the file 

Rev_jpr=flipud(Jpriest); 

wavplay(Rev_jpr,A); 


%We need to lower the bitrate,B so as to hear it clearly.. 

wavplay(Rev_jpr,A/2); 

% writing the file 
wavwrite(Rev_jpr,A,B,'H:\pu.data\Desktop\jpreverse.wav'); 
wavwrite(Rev_jpr,A/2,B,'H:\pu.data\Desktop\slowjpreverse.wav'); 

File Media:Jpreverse_ECE301Fall2008mboutin.wav File Media:slowjpreverse_ECE301Fall2008mboutin.wav

Alumni Liaison

Have a piece of advice for Purdue students? Share it through Rhea!

Alumni Liaison