to_db()

auglib.utils.to_db(x)[source]

Convert gain to decibels (dB).

Parameters:

x (float | auglib.core.observe.Base) – input gain

Return type:

float

Returns:

input gain in dB

Examples

>>> to_db(2)
6.020599913279624