clc;
[w,f]=wavread('your file name');
player = audioplayer(w, f)
sound(w,f)
% new_w=w(1:500);
% stem(new_w)% /* see what it sounds like */
t=0:1/f:(length(w)-1)/f;
n=length(w)
max_w=max(w)
min_w=0
delta=(max_w+min_w)/256
normal=(w/max_w);
plot(t,w,'r');
grid on
[w,f]=wavread('your file name');
player = audioplayer(w, f)
sound(w,f)
% new_w=w(1:500);
% stem(new_w)% /* see what it sounds like */
t=0:1/f:(length(w)-1)/f;
n=length(w)
max_w=max(w)
min_w=0
delta=(max_w+min_w)/256
normal=(w/max_w);
plot(t,w,'r');
grid on
No comments:
Post a Comment