Skip to content

Commit c0ea61a

Browse files
committed
src: Update test_record.py to use mult for volume.
Signed-off-by: Damien George <[email protected]>
1 parent 69a5da3 commit c0ea61a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/test_record.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,7 @@
3535
while button_a.is_pressed():
3636
sleep(50)
3737
display.clear()
38-
# amplify volume
39-
GAIN = 2
40-
#my_recording *= GAIN
41-
for i in range(len(my_track)):
42-
my_track[i] = max(0, min(128 + GAIN * (my_track[i] - 128), 255))
38+
my_track *= 2 # amplify volume
4339
if button_b.is_pressed():
4440
audio.play(my_track, wait=False)
4541
level = 0

0 commit comments

Comments
 (0)