notesToHz: Convert notes to Hz

View source: R/math.R

notesToHzR Documentation

Convert notes to Hz

Description

Converts to Hz from musical notation like A4 - note A of the fourth octave above C0 (16.35 Hz).

Usage

notesToHz(n, A4 = 440)

Arguments

n

vector or matrix of notes

A4

frequency of note A in the fourth octave (modern standard ISO 16 or concert pitch = 440 Hz)

See Also

HzToNotes HzToSemitones

Examples

notesToHz(c("A4", "D4", "A#2", "C0", "C-2"))

# Baroque tuning A415, half a semitone flat relative to concert pitch A440
notesToHz(c("A4", "D4", "A#2", "C0", "C-2"), A4 = 415)

tatters/soundgen documentation built on Aug. 22, 2023, 4:24 p.m.