"Reformatted per new black version"
This commit is contained in:
parent
3e822c3461
commit
3ec03ecb0a
1 changed files with 2 additions and 2 deletions
|
|
@ -707,8 +707,8 @@ class PyBadgerBase:
|
|||
|
||||
@staticmethod
|
||||
def _sine_sample(length: int) -> Generator[int, None, None]:
|
||||
tone_volume = (2 ** 15) - 1
|
||||
shift = 2 ** 15
|
||||
tone_volume = (2**15) - 1
|
||||
shift = 2**15
|
||||
for i in range(length):
|
||||
yield int(tone_volume * math.sin(2 * math.pi * (i / length)) + shift)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue