Tone

The exported Tone object. Contains all of the classes that default to the same context and contains a singleton Transport and Destination node.

Index

Constructor

Properties

Properties

debug #

boolean

Set this debug flag to log all events that happen in this class.

disposed #

readonly boolean

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.

static version #

string

The version number semver

Methods

dispose #

disconnect and dispose.

dispose ( ) => this

static getDefaults #

Returns all of the default options belonging to the class.

getDefaults ( ) => BaseToneOptions

toString #

Convert the class to a string


const osc = new Tone.Oscillator();
console.log(osc.toString());
toString ( ) => string