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 (val
, [ units
]
)
val
The time value.
type:
String
or
Number
units
The units of the value.
type:
String
optional
EXAMPLE
Methods
.harmonize ( )
#
intervals
type:
Array
↪ returns
Array.
Returns an array of Frequencies
Takes an array of semitone intervals and returns an array of frequencies transposed by those intervals.
EXAMPLE
.transpose ( )
#
interval
type:
Interval
↪ returns
Tone.Frequency
A new transposed frequency
Transposes the frequency by the given number of semitones.
EXAMPLE
↳ inherited from
Tone.TimeBase
.valueOf ( )
#
↪ returns
Seconds
Evaluate the time value. Returns the time in seconds.
↳ inherited from
Tone.TimeBase
.toMilliseconds ( )
#
↪ returns
Milliseconds
Return the time in milliseconds.