dbb

Acoustic B-weighting function.

Syntax

Output = dbb(freq,mag)

Output = dbb(freq,mag,ref)

Inputs

freq
The vector of frequency values.
Type: double
Dimension: vector
mag
The spectral magnitudes corresponding to freq.
Type: double
Dimension: vector
ref
The optional decibel reference (default: 1.0).
Type: integer
Dimension: scalar

Outputs

Output
The weighted response.
Type: double
Dimension: vector

Example

Plot the B weights in decibels with log spacing for frequency.

freq = logspace(1,5,100);
mag = ones(1,length(freq));
output = dbb(freq, mag);
semilogx(freq, mag2db(output));
Figure 1. dbb figure 1


Comments

B-weighting dampens the non-audible components of the input curve. Output is not converted to decibels, which can be done when plotting.

The magnitude vector is divided by the reference and then weighted.