Skip to content

utils.DspUtils.Function.convertDbToAmplitudeOr0

Christian d'Heureuse edited this page Jun 7, 2026 · 2 revisions

dsp-collection / utils/DspUtils / convertDbToAmplitudeOr0

Function: convertDbToAmplitudeOr0()

function convertDbToAmplitudeOr0(x): number;

Defined in: utils/DspUtils.ts:39

Same as convertDbToAmplitude but with exceptions to generate 0 values.

The following values are converted to 0:

  • dB values below or equal to -99.
  • Invalid numbers (NaN, 1/- Infinity).

Parameters

x

number

Returns

number

Clone this wiki locally