% fig4b % Figure 4(b) of "Cancellation model of pitch perception" (JASA 97) global sr; sr = 10000; level = 90; % dB nchan = 40; % number of BM channels flo = 100; % Hz - lowest BM channel frequency (fhi = sr/2) range = 0.0075; % s - range for ACF windowsize = 0.01; % s - window size for ACF y = synth_complex1; % scale level = level - 30; % 30 dB corresponds to RMS=1 in M&H's model. y = rms(y, fromdB(level)); yy = bm_haircell(y, nchan, flo); yyy = rdf2(yy, range*sr, windowsize*sr); plot1(sum(yyy)); set(get(gca, 'title'), 'String',... '"Cancellation model of pitch perception" - Fig. 4b');