soundgen (version 1.5.0)

getRough: Get roughness

Description

Internal soundgen function

Usage

getRough(m, roughRange)

Arguments

m

numeric matrix of non-negative values with rownames 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 = matrix(rnorm(100, 10, 1), nrow = 10)
rownames(m) = seq(-10, 10, length.out = nrow(m))
soundgen:::getRough(m, roughRange = c(6, 8))
# }

Run the code above in your browser using DataLab