clear all;
load('Guitar.mat');
wave=wavread('fmt.wav');
wave1=abs(wave);
len=length(wave1);
F_sample=8000;
av_energy=norm(wave1)./sqrt(len);
data=struct('start',[],'max_amp',[]);
num=1;
t=0:F_sample/F_sample-F_sample/len;
step=1;
rate=1.5;
max_range=round(100/F_sample*len);
ign_range1=round(60/F_sample*len);
ign_range2=round(50/F_sample*len);
ign_range3=round(5/F_sample*len);
t_start=1;
t_end=t_start+max_range;
t_max1=0;
t_max2=0;
max_amp1=0;
max_amp2=av_energy;
t_start2=0;
t_end2=0;
while t_start<=len
t_end=t-start+max_range-1;
if(t_end>len)
t_end=len;
end