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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

480<br />

MUSICAL ApPLICATIONS OF MICROPROCESSORS<br />

OUTPUT<br />

INPUT<br />

AMPLITUDE<br />

CONTROL<br />

Fig. 13-33. Nonlinear waveshaping synthesis calcuations<br />

Figure 13-33 diagrams the calculations needed for digital nonlinear<br />

waveshaping synthesis. Two tables are required; one with a permanent sine<br />

wave and the other with the desired nonlinear function. As with digital FM<br />

synthesis, the sine wave table lookup must be very accurate to avoid<br />

undesired audible distortion. This is because, near the peak <strong>of</strong> the input sine<br />

wave, small changes in the sine value can produce large changes in the output<br />

from the nonlinear function. This can be seen by looking at the left or right<br />

edges <strong>of</strong> the curve in Fig. 13-31H in which the slope is very steep. Likewise,<br />

the nonlinear curve table must be large for the same reason. Linear<br />

interpolation into both tables is a must for high-quality synthesis.<br />

Which Is Best?<br />

In this chapter, five distinctly different methods <strong>of</strong> synthesizing sound<br />

digitally have been covered. Also available are several less well-known and<br />

generally less-useful techniques that have been described in research papers.<br />

There is, <strong>of</strong> course, no "best" technique for all purposes. Direct waveform and<br />

spectrum synthesis methods are the most general but are difficult to control<br />

and require a lot <strong>of</strong> computing power to implement. The reduced parameter<br />

methods are easy to control but can be difficult or impossible to adapt to<br />

specific arbitrary requirements. In fact, it is usually advantageous to simply<br />

play with the variables to see if a sound adequately close to the desired result<br />

can be obtained and then either go from there or try a different technique.<br />

Another advantage <strong>of</strong> reduced parameter methods is that computational<br />

effort, at least theoretically, is reduced. However, the theoretical advantage<br />

may not necessarily be true in practice due to increased accuracy requirements.<br />

In the final analysis, if a synthesizer or program is to rely on just one<br />

technique, it should be one with greater generality such as waveform table<br />

scanning. A really comprehensive synthesis system would ideally provide for<br />

all <strong>of</strong> those discussed in this chapter plus provision for easily adding others as<br />

they are discovered.

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

Saved successfully!

Ooh no, something went wrong!