www.pudn.com > LPCToolbox.rar > SETPARAMS.M
% playsnd : (boolean). If 1, then for each filename, execute % the VAX command "gplay" % plotmean : Figure number. After each sound, the mean values % values of F1 & F2 are plotted in this figure. function setparams global Ap % analysis parameters (common to all sounds) global Cs % current sound (info. specific to the current sound) %------------------------------ % The following parameters are fixed for all sounds Ap.defaultFs = 10000; % default sampling rate Ap.analysis_width = 256; % ILS defaults, which we are Ap.context_width = 64; % retaining. Ap.preemph = 0.95; Ap.fftlen = 512; % resolution of the LPC spectrum Ap.usehamming = 1; % boolean, use a hamming window Ap.usetpi = 1; % boolean, use three-point parabolic interpolation Ap.freezeorder = 0; % if set to nonzero p, filter order is frozen at p Ap.mincoeffs = 5; Ap.maxcoeffs = 20; Ap.rccutoff = 0.15; % reflection coeff cutoff (see GETFILTERORDER) % The following aren't analysis parameters, but they are % common to all the sounds. Ap.playsnd = 0; Ap.showspcgm = 1; % show the background spectrogram %------------------------------ Cs.Fs = Ap.defaultFs; % sampling rate for current file Cs.sndindex = 1; % index of sound in the given list Cs.sndfilename = ''; Cs.datfilename = ''; Cs.snd = []; Cs.framerange = []; Cs.nframes = 0; % number of analysis frames Cs.ncoeffs = 0; Cs.pks = []; % following are housekeeping variables Cs.rm_ncoeffs = Ap.mincoeffs; % running mean of ncoeffs Cs.rm_count = 0; % number of values in the running mean