Tone.Midi↳ EXTENDS Tone.Frequency
Tone.Midi is a primitive type for encoding Time values. Tone.Midi can be constructed with or without the
new keyword. Tone.Midi can be passed into the parameter of any method which takes time as an argument.
CONSTRUCTORnew Tone.Midi (
The time value.
The units of the value.
.transpose ( )#
Transposes the frequency by the given number of semitones.
.toSeconds ( )#
Return the duration of one cycle in seconds.
.toTicks ( )#
Return the duration of one cycle in ticks
.harmonize ( )#
Takes an array of semitone intervals and returns an array of frequencies transposed by those intervals.
.toNote ( )#
Return the value of the frequency in Scientific Pitch Notation
.valueOf ( )#
Evaluate the time value. Returns the time in seconds.
.toMilliseconds ( )#
Return the time in milliseconds.