Tone
internal class Core
Tone is the base class of all other classes.
Constructor
Section titled “Constructor”new Tone()Properties
Section titled “Properties”debug: booleanSet this debug flag to log all events that happen in this class.
Default: false
disposed
Section titled “disposed”read-only
disposed: booleanIndicates 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.
Methods
Section titled “Methods”toString()
Section titled “toString()”toString(): stringConvert the class to a string
const osc = new Tone.Oscillator(); console.log(osc.toString());
Returns string
getDefaults()
Section titled “getDefaults()”static
getDefaults(): BaseToneOptionsReturns all of the default options belonging to the class.
Returns BaseToneOptions