Learn R Programming

sequenceR (version 1.0.1)

getFrequencies: Notes-to-frequencies function

Description

Get frequencies from note names (in scientific pitch notation).

Usage

getFrequencies(notes, minOctave = 0, maxOctave = 8)

Value

a numeric vector of frequencies (in Hz)

Arguments

notes

Character vector, note names.

minOctave

integer, smallest (lowest-pitched) octave

maxOctave

integer, largest (highest-pitched) octave

Examples

Run this code
# example code
getFrequencies(c('A3','A4','A5','C#6','Db6','A9','X0'))
getFrequencies(c('A3','A4','A5','C#6','Db6','A9','X0'),maxOctave=9)

Run the code above in your browser using DataLab