ERBToHz: Convert Hz to ERB rate

View source: R/math.R

ERBToHzR Documentation

Convert Hz to ERB rate

Description

Converts from Hz to the number of Equivalent Rectangular Bandwidths (ERBs) below input frequency. See https://www2.ling.su.se/staff/hartmut/bark.htm and https://en.wikipedia.org/wiki/Equivalent_rectangular_bandwidth

Usage

ERBToHz(e, method = c("linear", "quadratic")[1])

Arguments

e

vector or matrix of frequencies in ERB rate

method

approximation to use

See Also

HzToERB HzToSemitones HzToNotes

Examples

freqs_Hz = c(-20, 20, 100, 440, 1000, 20000, NA)
e_lin = HzToERB(freqs_Hz, 'linear')
ERBToHz(e_lin, 'linear')

e_quad = HzToERB(freqs_Hz, 'quadratic')
ERBToHz(e_quad, 'quadratic')

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