Tone.Frequency
↳ EXTENDS Tone.TimeBaseTone.Frequency is a primitive type for encoding Frequency values. Eventually all time values are evaluated to hertz using the eval
method.
CONSTRUCTOR
new Tone.Frequency (The time value.
The units of the value.
EXAMPLE
Methods
.transpose ( )
#this
Transposes the frequency by the given number of semitones.
EXAMPLE
.harmonize ( )
#this
Takes an array of semitone intervals and returns an array of frequencies transposed by those intervals.
EXAMPLE
.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
Optional units to use with the value.
this
Divide the current value by the given time.
EXAMPLE
.mult ( )
#The value to multiply
Optional units to use with the value.
this
Multiply the current value by the given time.
EXAMPLE
.set ( )
#this
Repalce the current time value with the value given by the expression string.
.sub ( )
#The value to subtract
Optional units to use with the value.
this
Subtract the value from the current time.
EXAMPLE
.add ( )
#The value to add
Optional units to use with the value.
this
Add to the current value.