Tone.Ticks↳ EXTENDS Tone.TransportTime
Tone.Ticks is a primitive type for encoding Time values. Tone.Ticks can be constructed with or without the
new keyword. Tone.Ticks can be passed into the parameter of any method which takes time as an argument.
CONSTRUCTORnew Tone.Ticks (
The time value.
The units of the value.
.toNotation ( )#
Convert a Time to Notation. The notation values are will be the closest representation between 1m to 128th note.
.quantize ( )#
Move the time value towards the quantized value by a percentage.
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.
.toBarsBeatsSixteenths ( )#
Return the time encoded as Bars:Beats:Sixteenths.
.valueOf ( )#
Evaluate the time value. Returns the time in seconds.
.toMilliseconds ( )#
Return the time in milliseconds.