amp2db

pitchtools.amp2db(amp)[source]

convert amp (0, 1) to dB

20.0 * log10(amplitude)

Parameters:

amp (float) – the amplitude between 0 and 1

Return type:

float

Returns:

the corresponding amplitude in dB

See also

db2amp()