rampTo
In Tone.js, many of a class' members are
Tone.Signals.
Working with signals is different than working with numbers or strings:
Signals are values which are updated at audio rate,
which allows for sample-accurate scheduling and ramping.
.rampTo(value, rampTime)
smoothly changes the signal from the current value to the target value over the duration of the rampTime.
This example uses
.rampTo
in to smooth out changes in volume and frequency.
As the large dot gets closer to each of the smaller dots, a different harmonic is heard depending
on the distance to that smaller dot. The "harmony" slider adjusts each of the oscillators frequencies'
distance from the fundamental frequency.