dba

Acoustic A-weighting function.

Syntax

dba(x, y, [, reference])

Argument

x
The frequency vector of the input curve in Hertz.
y
The input vector of the input curve to be weighted.
[, reference]
An optional reference value. 1.0 is used when no reference value is specified.

Example

Curve Math Vectors Result
x = c1.x

y = dba(c1.x, c1.y)

Given c1, an A-weighted frequency curve is created.

Comments

The dba function returns the A-weighted frequency curve for the input curve. The A-weighting dampens the non-audible components of the input curve.



Figure 1.
Note: The dba function does not convert the input to decibels. If you want to get from pressure to the sound pressure level (A-weighted), you need to use the following:

x=c1.x

y=20*log10(dba(c1.x, c1.y, reference))