ERBToHz {soundgen} | R 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')
[Package soundgen version 2.6.3 Index]