Convert amplitude to decibel (dB) values
to_dB(x, ref = 1)
x
numeric. Vector of amplitude values (V1).
ref
numeric. Reference value (V0) to calculate the ratio (V1/V0).