soundgen (version 1.5.0)

iso226: iso226

Description

Internal soundgen function

Usage

iso226(phon, nBarks = 22)

Arguments

phon

the phon value in dB SPL represented by the loudness curve

Value

A dataframe containing evaluated frequencies and SPL values

Details

Calculates equal loudness curves according to the ISO226 standard. Expected range of input values in phon is 0 to 90 (1 phon is 1 dB at 1 kHz). The range of evaluated frequencies is 20 to 12500 Hz, with a total of 29 values (so upsample if more resolution is needed, but not that beyond 22 barks it's just assumed to be flat). Translated from the matlab implementation by Jeff Tackett (03/01/05) available from "https://www.mathworks.com/matlabcentral/fileexchange/ 7028-iso-226-equal-loudness-level-contour-signal"

Examples

Run this code
# NOT RUN {
i = soundgen:::iso226(40)
plot(i$curve29, type = 'l')
plot(i$curveBark$freq_Hz, i$curveBark$spl, type = 'l')
# }

Run the code above in your browser using DataLab