A sawtooth wave is a repeating linear slope: for an input t from 0 to 1, its sample value is (2 * t) - 1. Inputs outside that interval are held constant. section 10.1.2
Generate a sawtooth tone
Represent the waveform as `type Wave = Double -> Sample`, then generate a 220 Hz tone for five seconds with `tone saw 220 5`. The tone function repeatedly maps normalized period positions through `saw`, using modulo arithmetic to restart each period.
