Learn R Programming

soundgen (version 2.7.2)

hz2mel: Hz to mel

Description

Internal soundgen function: a temporary fix needed because tuneR::hz2mel doesn't accept NAs or vectors.

Usage

hz2mel(f, htk = FALSE)

Arguments

f

frequency, Hz

htk

algrithm

Examples

Run this code
soundgen:::hz2mel(c(440, 220, NA))
freq = 1:10000
plot(freq, soundgen:::hz2mel(freq), type = 'l')

Run the code above in your browser using DataLab