Convert Frequency to Mel Scale
ucnv_hz_to_mel.RdConverts frequency values from Hz to the mel scale, a perceptual pitch scale where equal distances sound equally different to human listeners.
Usage
ucnv_hz_to_mel(freq, method = c("htk", "slaney"), as_units = NULL)Arguments
- freq
Numeric vector or units object with frequency values in Hz.
- method
Character string specifying the conversion formula to use. Options are:
"htk"(default): HTK formula using base-10 logarithm"slaney": Slaney's formula (linear below 1000 Hz)
- as_units
Logical. If TRUE, returns a units object with "mel" units.
Value
If as_units = TRUE: a units object with "mel" units.
Otherwise, a numeric vector of mel values.