getRough: Get roughness

View source: R/modulationSpectrum.R

getRoughR Documentation

Get roughness

Description

Internal soundgen function

Usage

getRough(m, roughRange, colNames = NULL)

Arguments

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

Details

Helper function for calculating roughness - the proportion of energy / amplitude in the roughness range

Value

Returns roughness in percent.

Examples

m = modulationSpectrum(soundgen(), samplingRate = 16000)$original
soundgen:::getRough(m, roughRange = c(30, Inf))

tatters/soundgen documentation built on Aug. 22, 2023, 4:24 p.m.