This example shows how to change and reset the wavetable that a cycle~ object is linked to. Sending cycle~ a message set followed by the buffer name can change its wavetable reference and the set message will reset the wavetable.
One of the earliest methods of digital sound synthesis was a digital version of the electronic oscillator, which was the most common sound generator in analog synthesizers. The method used was simply to read repeatedly, at the established sample rate, through a stored array of samples that represent one cycle of the desired sound wave. By changing the step size with which one increments through the stored wavetable, one can alter the number of cycles one completes per second, which will determine the perceived fundamental frequency of the resulting tone.