A waveform describes one repeating period of a signal. In digital sound, it is modeled as a function from a position between 0 and 1 to a sample value between -1 and 1. section 10.1.2
Generating a tone
Represent a waveform as `type Wave = Double -> Sample`, then scan its positions repeatedly. The number of samples per period determines frequency; mapping those values across a duration produces a signal.
Figure 10.2 Four standard waveforms
Compare the four standard waveform shapes across one period. section 10.1.2

