(New page: %Sourabh Ranka %email== sranka@purdue.edu %ece 301 %to clear data clear; clc; %using the waveread command to convert the .wav file to the digital signal 'song' [song, samplerate, bi...)
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
==sound files==
 +
 +
File [[Media:songfoward_ECE301Fall2008mboutin.wav]]
 +
 +
File [[Media:songrevrese_ECE301Fall2008mboutin.wav]]
 +
 +
File [[Media:songslow_ECE301Fall2008mboutin.wav]]
 +
 +
==matlab command==
 +
<pre>
 
%Sourabh Ranka
 
%Sourabh Ranka
 
 
%email== sranka@purdue.edu
 
%email== sranka@purdue.edu
 
 
%ece 301
 
%ece 301
  
 
%to clear data
 
%to clear data
 
 
clear;
 
clear;
 
 
clc;
 
clc;
  
 
%using the waveread command to convert the .wav file to the digital signal 'song'
 
%using the waveread command to convert the .wav file to the digital signal 'song'
 
 
[song, samplerate, bitspersample] = wavread('H:\pu.data\Desktop\Jpforward.wav');
 
[song, samplerate, bitspersample] = wavread('H:\pu.data\Desktop\Jpforward.wav');
  
 
%using the waveplay command to listen the digital signal we have just converted at 44100 hz sampling rate
 
%using the waveplay command to listen the digital signal we have just converted at 44100 hz sampling rate
 
 
wavplay(song, samplerate);
 
wavplay(song, samplerate);
  
 
songback = flipud(song);
 
songback = flipud(song);
 
 
%to play the file backwardwe use the waveplay command and it runs it at the same frequency as the original sample rate   
 
%to play the file backwardwe use the waveplay command and it runs it at the same frequency as the original sample rate   
 
 
wavplay(songback, samplerate);
 
wavplay(songback, samplerate);
  
 
%to play  the song at half the sample rate
 
%to play  the song at half the sample rate
 
 
wavplay (songback,samplerate*0.5);
 
wavplay (songback,samplerate*0.5);
  
 
% to write the program on wave file
 
% to write the program on wave file
 
 
wavwrite(song,samplerate,bitspersample,'H:\pu.data\Desktop\songforward.wav');
 
wavwrite(song,samplerate,bitspersample,'H:\pu.data\Desktop\songforward.wav');
 
 
wavwrite(songback,samplerate,bitspersample,'H:\pu.data\Desktop\songbackward.wav');
 
wavwrite(songback,samplerate,bitspersample,'H:\pu.data\Desktop\songbackward.wav');
 +
wavwrite(songback,samplerate*0.5,bitspersample,'H:\pu.data\Desktop\songslow.wav');
  
wavwrite(songback,samplerate*0.5,bitspersample,'H:\pu.data\Desktop\songslow.wav');
+
%dont know what exactly it says but sounds like "I will face the death" in foward direction
 +
% in the backward direction sounds like "it is the fire night" or somthing i cant understand it clearly.
 +
</pre>

Latest revision as of 14:47, 5 September 2008

sound files

File Media:songfoward_ECE301Fall2008mboutin.wav

File Media:songrevrese_ECE301Fall2008mboutin.wav

File Media:songslow_ECE301Fall2008mboutin.wav

matlab command

%Sourabh Ranka
%email== sranka@purdue.edu
%ece 301

%to clear data
clear;
clc;

%using the waveread command to convert the .wav file to the digital signal 'song'
[song, samplerate, bitspersample] = wavread('H:\pu.data\Desktop\Jpforward.wav');

%using the waveplay command to listen the digital signal we have just converted at 44100 hz sampling rate
wavplay(song, samplerate);

songback = flipud(song);
%to play the file backwardwe use the waveplay command and it runs it at the same frequency as the original sample rate  
wavplay(songback, samplerate);

%to play  the song at half the sample rate
wavplay (songback,samplerate*0.5);

% to write the program on wave file
wavwrite(song,samplerate,bitspersample,'H:\pu.data\Desktop\songforward.wav');
wavwrite(songback,samplerate,bitspersample,'H:\pu.data\Desktop\songbackward.wav');
wavwrite(songback,samplerate*0.5,bitspersample,'H:\pu.data\Desktop\songslow.wav');

%dont know what exactly it says but sounds like "I will face the death" in foward direction
% in the backward direction sounds like "it is the fire night" or somthing i cant understand it clearly.

Alumni Liaison

Correspondence Chess Grandmaster and Purdue Alumni

Prof. Dan Fleetwood