powered by
Internal soundgen function: a temporary fix needed because tuneR::hz2mel doesn't accept NAs or vectors.
hz2mel(f, htk = TRUE)
frequency, Hz
if TRUE, uses an alternative formula 2595 * log10(1 + f/700)
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