22.09.2015 Views

of Microprocessors

Musical-Applications-of-Microprocessors-2ed-Chamberlin-H-1987

Musical-Applications-of-Microprocessors-2ed-Chamberlin-H-1987

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SOURCE-SIGNAL ANALYSIS 583<br />

PULSE PERIOD = SIGNAL PERIOD<br />

BLANKING<br />

TUNABLE<br />

SWITCH<br />

4-POLE<br />

2-POLE<br />

INPUT<br />

FREOUENCY<br />

~- DOWNSLOPE SSINGLE OUTPUT<br />

SIGNAL"" BUTTERWORTH --10 30-Hz PEAK --10 SHOT ~~ CONVERSION -r- INDICATIDN<br />

LOW-PASS<br />

HIGH-PASS DETECTOR 1<br />

/<br />

CUTOFF = 1.2<br />

FREOUENCY<br />

FAST OR SLOW<br />

DISCHARGE<br />

SINGLE<br />

SHOT<br />

2<br />

iT1ME=BO%<br />

OF PERIOD<br />

ADAPTIVE<br />

CONTROL I-<br />

PROCESSING<br />

Fig. 16-18. Simple time-domain pitch detector. Source: Electronotes Newsletter<br />

# 55, July, 1975.<br />

milliseconds following a transient. Of course, if the fundamental is absent as<br />

in Figs. 16-17C and F, low-pass preprocessing may filter our the entire<br />

signal and leave nothing to process further. Thus, with more sophisticated<br />

pitch detectors, the preprocessing filter cut<strong>of</strong>f should be fairly high, such as 1<br />

kHz, and used primarily for reducing noise.<br />

Experience with typical instrument waveforms and examination <strong>of</strong> Fig.<br />

16-17 reveals that in all cases bur one the location <strong>of</strong> waveform peaks contains<br />

sufficient information for determining periodicity. In fact, a simple positive<br />

peak detector with dynamic threshold performs infinitely better than a zerocrossing<br />

detector. A dynamic threshold is implemented by setting the<br />

threshold for peak detection to some fraction <strong>of</strong> the amplitude <strong>of</strong> the last<br />

detected peak. The trick is to make this fraction small enough so that sounds<br />

0f decreasing amplitude, such as Fig. 16-17G, are followed properly yet<br />

high enough to avoid double peaks from waveforms such as Fig. 16-17F.<br />

When double peaks are unavoidable, the detector can be blanked for some<br />

fraction <strong>of</strong> the currently measured period. Peaks would not be detected<br />

during the blanking interval. Of course, any peak detector scheme will fail<br />

on the waveform in Fig. 16-17D, which has two equally spaced positive<br />

peaks <strong>of</strong> equal amplitude. However, Fig. 16-170 has only one negative peak<br />

so perhaps two detectors, one for positive and one for negative peaks, would<br />

work better. Where there is disagreement between the two, the one teporting<br />

the longest period would be selected for output.<br />

Let's examine a fairly simple pitch detector based on peak deteerion 2<br />

that has been reasonably successful as an analog implementation and should<br />

2This pitch detector was designed by B.A. Hutchins and was described in Elecrronotes<br />

53-55.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!