(New page: == Sound Files == == Matlab Code ==) |
(→Matlab Code) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | == Sound Files == | + | == Sound Files and Lyrics == |
+ | [[Media:Jp.wav _ECE301Fall2008mboutin| Original]]. | ||
+ | [[Media:Jpreverse.wav _ECE301Fall2008mboutin| Reverse]]. | ||
+ | [[Media:Jpreverseslow.wav _ECE301Fall2008mboutin| Reverse Slow]]. | ||
+ | |||
+ | In the reverse version he appears to say "This life of mine". In the half speed reverse version you can make a the words "Take this life of mine". | ||
== Matlab Code == | == Matlab Code == | ||
+ | <pre> | ||
+ | %Paul Scheffler | ||
+ | %phscheff@purdue.edu | ||
+ | %ECE 301 HW1-1.m | ||
+ | |||
+ | clear | ||
+ | clc | ||
+ | |||
+ | %Open the provided file | ||
+ | [data,fs,nbits]=wavread('jpforward.wav'); | ||
+ | |||
+ | %Play the file | ||
+ | fprintf('Playing original') | ||
+ | wavplay(data,fs); | ||
+ | |||
+ | %Reverse the file | ||
+ | rdata=flipud(data); | ||
+ | |||
+ | fprintf('Playing reverse'); | ||
+ | wavplay(rdata,fs); | ||
+ | wavwrite(rdata,fs,nbits,'jpreverse.wav'); | ||
+ | |||
+ | %Slow it down down down down down(YEAH! you push it.) | ||
+ | fprintf('Playing reverse + slow'); | ||
+ | wavwrite(rdata,fs/2,nbits,'jpreverseslow.wav'); | ||
+ | wavplay(rdata,fs/2); | ||
+ | </pre> |
Latest revision as of 12:57, 4 September 2008
Sound Files and Lyrics
Original. Reverse. Reverse Slow.
In the reverse version he appears to say "This life of mine". In the half speed reverse version you can make a the words "Take this life of mine".
Matlab Code
%Paul Scheffler %phscheff@purdue.edu %ECE 301 HW1-1.m clear clc %Open the provided file [data,fs,nbits]=wavread('jpforward.wav'); %Play the file fprintf('Playing original') wavplay(data,fs); %Reverse the file rdata=flipud(data); fprintf('Playing reverse'); wavplay(rdata,fs); wavwrite(rdata,fs,nbits,'jpreverse.wav'); %Slow it down down down down down(YEAH! you push it.) fprintf('Playing reverse + slow'); wavwrite(rdata,fs/2,nbits,'jpreverseslow.wav'); wavplay(rdata,fs/2);