Skip to content

Commit e9dcaeb

Browse files
committed
"Reformatted per new black version"
1 parent 4a190cb commit e9dcaeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_waveform/sine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ def sine_wave(sample_frequency: float, pitch: float):
2424
length = int(sample_frequency / pitch)
2525
b = array.array("H", [0] * length)
2626
for i in range(length):
27-
b[i] = int(math.sin(math.pi * 2 * i / length) * ((2 ** 15) - 1) + 2 ** 15)
27+
b[i] = int(math.sin(math.pi * 2 * i / length) * ((2**15) - 1) + 2**15)
2828
return b

0 commit comments

Comments
 (0)