mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-24 01:41:39 +00:00
parent
ac7c71ae70
commit
7e5a1476c0
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user