Indicates if the instance was disposed. 'Disposing' an instance means that all of the Web Audio nodes that were created for the instance are disconnected and freed for garbage collection.
Coerce a time type into this units type.
Any time type units
Returns all of the default options belonging to the class.
Quantize the time by the given subdivision. Optionally add a percentage which will move the time value towards the ideal quantized value by that percentage.
Tone.Time(21).quantize(2); // returns 22 Tone.Time(0.6).quantize("4n", 0.5); // returns 0.55
The subdivision to quantize to
Move the time value towards the quantized value by a percentage.
Return the time encoded as Bars:Beats:Sixteenths.
Convert a Time to Notation. The notation values are will be the closest representation between 1m to 128th note.
// if the Transport is at 120bpm: Tone.Time(2).toNotation(); // returns "1m"
Convert the class to a string
const osc = new Tone.Oscillator(); console.log(osc.toString());