View source: R/modulationSpectrum.R
getRough | R Documentation |
Internal soundgen function
getRough(m, roughRange, colNames = NULL)
m |
numeric matrix of non-negative values with colnames giving temporal modulation frequency |
roughRange |
the range of temporal modulation frequencies that constitute the "roughness" zone, Hz |
colNames |
numeric vector with frequencies corresponding to columns |
Helper function for calculating roughness - the proportion of energy / amplitude in the roughness range
Returns roughness in percent.
m = modulationSpectrum(soundgen(), samplingRate = 16000)$original
soundgen:::getRough(m, roughRange = c(30, Inf))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.