Created
July 8, 2019 08:00
-
-
Save wiccy46/388c337d6ba136e23fd114e31cbf49e6 to your computer and use it in GitHub Desktop.
[dbamp]Convert dB to amplitude #python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in value_in_dB: | |
print pow (10, float(i)/20) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't think this is correct, any thoughts?
Here's librosa docs on decibels to amplitude https://github.com/librosa/librosa/blob/9bff37233f9b639ea416137ebe149d763a6b4dd1/librosa/core/spectrum.py#L1697-L1720
And here's librosa docs on decibels to power
https://github.com/librosa/librosa/blob/9bff37233f9b639ea416137ebe149d763a6b4dd1/librosa/core/spectrum.py#L1605-L1628