HzToNotes(c(440, 293, 115, 16.35, 4))
notesToHz(c("A4", "D4", "A#2", "C0", "C-2"))
HzToNotes(c(440, 415, 80, 81), showCents = TRUE)
# 80 Hz is almost exactly midway (+49 cents) between D#2 and E2
# Baroque tuning A415, half a semitone flat relative to concert pitch A440
HzToNotes(c(440, 415, 16.35), A4 = 415)
notesToHz(c("A4", "D4", "A#2", "C0", "C-2"), A4 = 415)
Run the code above in your browser using DataLab