librosa.core.db_to_power¶
-
librosa.core.
db_to_power
(S_db, ref=1.0)[source]¶ Convert a dB-scale spectrogram to a power spectrogram.
This effectively inverts
power_to_db
:db_to_power(S_db) ~= ref * 10.0**(S_db / 10)Parameters: - S_db : np.ndarray
dB-scaled spectrogram
- ref : number > 0
Reference power: output will be scaled by this value
Returns: - S : np.ndarray
Power spectrogram
Notes
This function caches at level 30.