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)

soundgen documentation built on Sept. 12, 2024, 6:29 a.m.