myname='pill_lip';
ntrial=8;
reftrial=int2str(ntrial);

%data is 24 kHz

dosona=0;
if dosona
%downfac=4;
%downfac=1./downfac;
%nwin=128;
%mtsona2file([myname '_cut'],myname,'1','_.AUDIO','_nbs_',0,nwin,['hamming(' int2str(nwin) ')'],nwin-(nwin/4),downfac)


downfac=2;		%this gives 6 kHz bandwidth
downfac=1./downfac;
nwin=64;
cuttype=1;
mtsona2file([myname '_mark'],myname,reftrial,'_.AUDIO','_wbs_',cuttype,nwin,['hamming(' int2str(nwin) ')'],nwin-(nwin/4),downfac)

return

end;
%mtnew([myname '_cut'],myname,'1',str2mat('_.AUDIO.audio','_nbs_.AUDIO_sona.narrow','_wbs_.AUDIO_sona.wide'));
%mtnew([myname '_cut'],myname,'1',str2mat('_.AUDIO.audio','_nbs_.AUDIO_sona.sona'));
mtnew([myname '_mark'],myname,reftrial,str2mat('_.AUDIO.audio','_wbs_.AUDIO_sona.sona'),'mycmds.m');


