(New page: %Cory Ocker (cocker@purdue.edu) %9/5/08 HW1 %EE301 MWF 4:30 clear; clc; %first i went to http://www.hoerl.com/Music/music1_basic.html and read a %tutorial on music because I don't know di...) |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | It sounds like "I took my own life"... | ||
+ | [[Media:jpbackwards_ECE301Fall2008mboutin.wav]] | ||
+ | <pre> | ||
%Cory Ocker (cocker@purdue.edu) | %Cory Ocker (cocker@purdue.edu) | ||
%9/5/08 HW1 | %9/5/08 HW1 | ||
Line 5: | Line 8: | ||
clc; | 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> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | % | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | % | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | % | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | % | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Latest revision as of 11:57, 4 September 2008
It sounds like "I took my own life"... 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