(→Wave Files) |
(→MATLAB Code) |
||
Line 4: | Line 4: | ||
== MATLAB Code == | == MATLAB Code == | ||
+ | <pre> | ||
+ | clc;clear; | ||
+ | x=wavread('jpforward.wav'); | ||
+ | i=1; | ||
+ | while i<751000/2 | ||
+ | temp =x(751000-i+1); | ||
+ | x(751000-i+1)=x(i); | ||
+ | x(i)=temp; | ||
+ | i=i+1; | ||
+ | end | ||
+ | wavwrite(x,44100,'hw2reversed'); | ||
+ | wavwrite(x,40000,'hw2reversedslower'); | ||
+ | </pre> |
Revision as of 13:36, 1 September 2008
Wave Files
- Reversed
- Reversed(slower) it says "This land is mine"
MATLAB Code
clc;clear; x=wavread('jpforward.wav'); i=1; while i<751000/2 temp =x(751000-i+1); x(751000-i+1)=x(i); x(i)=temp; i=i+1; end wavwrite(x,44100,'hw2reversed'); wavwrite(x,40000,'hw2reversedslower');