
Helper function to convert a Wave-like object to a dB scikit-maad spectrogram
Source:R/scikit-maad-classes.R
dot-spectrogram_maad_dB.RdOne already in dB is returned as it is. Converting it again would not merely
give the wrong number: dB values are commonly zero or negative, so a second
10*log10() returns -Inf and NaN, which then travel into every index
built on the spectrogram.