character, noteworthy string, space-delimited or vector of
individual entries. See details.
a4
the fixed frequency of the A above middle C, typically 440 Hz.
freq
numeric vector, frequencies in Hz.
collapse
logical, collapse result into a single string.
...
other arguments passed to tranpose, specifically
key and style.
Value
numeric vector
Details
Frequencies are in Hertz. Values are based on the 12-tone equal-tempered
scale. When converting an arbitrary frequency to pitch, it is rounded to the
nearest pitch.
pitch_freq and pitch_semitones strictly accept single notes in
noteworthy strings and return numeric vectors.
chord_freq and chord_semitones accept any noteworthy string
and always return a list. These are provided so that all functions are
type-safe. See examples.