CalcNoteFrequency: Note Frequency

CalcNoteFrequencyR Documentation

Note Frequency

Description

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.

Usage

CalcNoteFrequency(inNote, inOctave)

Arguments

inNote

a note string A-G with or without accidental (e.g. Bb). Both sharps (#) and flats (b) can be used.

inOctave

the octave number of the note if empty or not specified, inNoteNr is assumed to contain the octave specification.

Details

CalcNoteFrequency is a shorter version of IPEMCalcNoteFrequency (IPEM Toolbox).

Value

A numeric giving the frequency (Hz) of the indicated note.

Author(s)

Marc Vidal.

Examples

freqA4 <- CalcNoteFrequency("A")

m-vidal/eaR documentation built on Nov. 18, 2022, 3:55 p.m.