librosa.core.db_to_amplitude¶
-
librosa.core.
db_to_amplitude
(S_db, ref=1.0)[source]¶ Convert a dB-scaled spectrogram to an amplitude spectrogram.
This effectively inverts
amplitude_to_db
:db_to_amplitude(S_db) ~= 10.0**(0.5 * (S_db + log10(ref)/10))Parameters: - S_db : np.ndarray
dB-scaled spectrogram
- ref: number > 0
Optional reference power.
Returns: - S : np.ndarray
Linear magnitude spectrogram
Notes
This function caches at level 30.