CalcNoteFrequency | R Documentation |
This function calculates any note frequency for an equal-tempered scale within a range of eight octaves (0-7). The used formula is
\code{frequency}=f_{0} \times (λ)^{\code{N}},
where f_{0} is a fixed frequency defined by default at 440 Hz (\code{A}_{4}). The coefficient λ=√[{12}]{2} allows to calculate the note frequency through N
steps; e.g., \code{N}=0 equals to A
.
CalcNoteFrequency(inNote, inOctave)
inNote |
a note string |
inOctave |
the octave number of the note if empty or not specified, |
CalcNoteFrequency
is a shorter version of IPEMCalcNoteFrequency
(IPEM Toolbox).
A numeric giving the frequency (Hz) of the indicated note.
Marc Vidal.
freqA4 <- CalcNoteFrequency("A")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.