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

Description Usage Format Examples

Description

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

Usage

1

Format

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

Examples

1
2
3
4
5
6
7
# 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)

tatters/soundgen_beta documentation built on May 14, 2019, 9 a.m.