AbstractThe context associated with the time value. Used to compute Transport and context-relative timing.
Optionalvalue: TimeValue
The time value as a number, string or object
Optionalunits: Unit
Unit values
Protected_All of the conversion expressions
Protected Optional_The units of time
Protected Optional_The value of the units
ReadonlycontextSet this debug flag to log all events that happen in this class.
ReadonlydefaultThe default units
Protected AbstractnameThe name of the class
StaticversionThe version number semver
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.
Protected_Protected_Protected_Return the bpm
Protected_All of the time encoding expressions
Protected_Return the PPQ or 192 if Transport is not available
Protected_Return the timeSignature
Protected_With no arguments, return 'now'
Protected Abstract_Return the current time in whichever context is relevant
Protected_Protected_disconnect and dispose.
Coerce a time type into this units type.
Any time type units
ProtectedlogPrints the outputs to the console log for debugging purposes.
Prints the contents only if either the object has a property
called debug set to true, or a variable called TONE_DEBUG_CLASS
is set to the name of the class.
Return the value in hertz
AbstracttoReturn the value as a Midi note
Return the time in milliseconds.
Return the time in samples
AbstracttoReturn the value in seconds
AbstracttoConvert the value into ticks
Evaluate the time value. Returns the time in seconds.
StaticgetReturns all of the default options belonging to the class.
TimeBase is a flexible encoding of time which can be evaluated to and from a string.