from_db()

auglib.utils.from_db(x_db)[source]

Convert decibels (dB) to gain.

Parameters

x_db (typing.Union[float, auglib.core.observe.Base]) – input gain in decibels

Return type

float

Returns

input gain

Examples

>>> from_db(-3)
0.7079457843841379