Learn R Programming

soundgen (version 1.7.0)

getRough: Get roughness

Description

Internal soundgen function

Usage

getRough(m, roughRange)

Arguments

m

numeric matrix of non-negative values with colnames giving temporal modulation frequency

roughRange

range of temporal modulation frequencies corresponding to roughness

Value

Returns roughness in percent.

Details

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

Examples

Run this code
# NOT RUN {
m = modulationSpectrum(soundgen(), samplingRate = 16000)$original
soundgen:::getRough(m, roughRange = c(30, Inf))
# }

Run the code above in your browser using DataLab