updated dB_to_freq docstring

Former-commit-id: 68b1c121bd
This commit is contained in:
Joshua Chin 2015-06-17 14:34:03 -04:00
parent ac7c71ae70
commit 7e5a1476c0

View File

@ -128,8 +128,10 @@ def get_frequency_list(lang, wordlist='combined', match_cutoff=30):
def dB_to_freq(dB): def dB_to_freq(dB):
""" """
Converts decibels to freequency. Decibels are a logarithmic scale of frequency. 0dB represents a frequency
If the decibels is positive, throws a ValueError of 1 (it happens every time). -10dB represents a frequency of 1/10, or
1 in every 10. -20dB represents a frequency of 1/100. In general x dB
represents a frequency of 10 ** (x/10)
""" """
if dB > 0: if dB > 0:
raise ValueError( raise ValueError(