Sine Wave
Wave
Spectrum
This example creates a sine wave. The sine wave is the ‘hello world’ of sound.
The sinWave function also allows us to pass in an optional wave to control its phase, which we’ll use to make some neat sounds in the frequency modulation section. You can add sine waves together to create any repeating sound, this is known as Fourier Synthesis, or additive synthesis.