spreadSpec: Spread spectrum

View source: R/loudness_utilities.R

spreadSpecR Documentation

Spread spectrum

Description

Internal soundgen function

Usage

spreadSpec(barkSpec)

Arguments

barkSpec

a numeric vector of length equal to the number of critical bands (eg 1 to 24 barks), giving the power in each band on a linear scale (not dB)

Details

Spreads spectrum to account for frequency masking across critical bands. See Wonho (1999) "Enhanced modified bark spectral distortion (EMBSD)"

Examples

barkSpec = c(rep(0, 10), 20000, 2e5, 2e4, 1e4, 2000, rep(0, 8))
plot(soundgen:::spreadSpec(barkSpec), type = 'b', col = 'red')
points(barkSpec, type = 'b', col = 'blue')

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