note2freq {music} | R Documentation |
Convert musical notes to frequencies
Description
Convert notes to frequencies
Usage
note2freq(
note,
tuning = c("12ET", "custom"),
custom.ratios = c(1, 16/15, 9/8, 6/5, 5/4, 4/3, 45/32, 3/2, 8/5, 5/3, 9/5, 15/8, 2),
A4 = 440,
custom.root = "C",
default.octave = 4
)
Arguments
note |
String: Note(s) to convert to frequencies |
tuning |
String: "12ET": 12-note equal temperament, "custom": Intonation defined by |
custom.ratios |
Numeric, vector, length 13: Custom ratios for a 12-note scale, starting with 1 (root)
and ending in 2 (octave) to use when |
A4 |
Float: Frequency for A4 in Hz. Default = 440 |
custom.root |
String: Root note for just intonation ( |
default.octave |
Integer: If |
Author(s)
E.D. Gennatas
Examples
note2freq(buildScale("B4", "minor"))
[Package music version 0.1.2 Index]