Skip to contents

Converts values from the mel scale to frequency in Hz. This is the inverse of ucnv_hz_to_mel.

Usage

ucnv_mel_to_hz(mel, method = c("htk", "slaney"), as_units = NULL)

Arguments

mel

Numeric vector or units object with mel values.

method

Character string specifying which inverse formula to use.

as_units

Logical. If TRUE, returns a units object with "Hz" units.

Value

If as_units = TRUE: a units object with "Hz" units. Otherwise, a numeric vector of frequencies in Hz.

See also

Examples

if (FALSE) { # \dontrun{
# Round trip
mel <- ucnv_hz_to_mel(1000)
ucnv_mel_to_hz(mel)  # Should return ~1000
} # }