Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


soundgen (version 1.0.0)

notesDict: Conversion table from Hz to semitones above C0 to musical notation

Description

A dataframe of 132 rows and 2 columns: "note" and "freq" (Hz)

Usage

notesDict

Arguments

Format

An object of class data.frame with 132 rows and 2 columns.

Examples

Run this code
# NOT RUN {
# To recompile:
notes = c('C', 'C\U266F', 'D', 'D\U266F', 'E', 'F', 'F\U266F', 'G', 'G\U266F', 'A', 'B\U266D', 'B')
nOct = 11
notes_all = paste0(notes, rep(0:(nOct - 1), each = 12))
# 440 / 32 = 13.75  # A-1, and C0 is 3 semitones higher: 16.3516 Hz exactly.
c0 = 13.75 * 2 ^ (3 / 12)
notes_freq = round (c0 * 2^(0:(12 * nOct - 1) / 12), 1)
# }

Run the code above in your browser using DataLab