to_db()

auglib.utils.to_db(x)[source]

Convert gain to decibels (dB).

Parameters

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

Return type

float

Returns

input gain in dB

Examples

>>> to_db(2)
6.020599913279624