Tone.Frequency↳ EXTENDS Tone.TimeBase
Tone.Frequency is a primitive type for encoding Frequency values. Eventually all time values are evaluated to hertz using the
CONSTRUCTORnew Tone.Frequency (
The time value.
The units of the value.
.frequencyToMidi ( )#
Convert a frequency value to a MIDI note.
.midiToFrequency ( )#
Convert a MIDI note to frequency value.
.toNote ( )#
Return the value of the frequency in Scientific Pitch Notation
.transpose ( )#
Transposes the frequency by the given number of semitones.
.harmonize ( )#
Takes an array of semitone intervals and returns an array of frequencies transposed by those intervals.
.valueOf ( )#
Evaluate the time value. Returns the time in seconds.
.clone ( )#
The new cloned Tone.TimeBase
Return a clone of the TimeBase object.
.copy ( )#
Copies the value of time to this Time
.div ( )#
The value to divide by
Divide the current value by the given time.
.mult ( )#
The value to multiply
Multiply the current value by the given time.
.set ( )#
Repalce the current time value with the value given by the expression string.
.sub ( )#
The value to subtract
Subtract the value from the current time.