Skip to content

multi_frequency_weighting

multi_frequency_weighting(frequencies, kinds?, min_db?): any[]

Defined in: packages/pleco-xa/src/scripts/xa-convert.js:869

Compute multiple frequency weightings at once

number | any[]

Frequencies in Hz (scalar or array)

string[] = ...

Array of weighting types, e.g., [‘Z’, ‘A’, ‘C’]

number = -80.0

Minimum dB value

any[]

Array of weighting arrays, one per kind

multi_frequency_weighting([100, 1000, 10000], ['Z', 'A', 'C'])
// Returns [[0, 0, 0], [-19.1, 0, 0], [-0.2, 0, -0.2]]