From c0ea61a7e62e17523b0540caa7ed4b2bf801a56b Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 21 Aug 2024 12:37:49 +1000 Subject: [PATCH] src: Update test_record.py to use mult for volume. Signed-off-by: Damien George --- src/test_record.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/test_record.py b/src/test_record.py index 20d2306..1f83c5e 100644 --- a/src/test_record.py +++ b/src/test_record.py @@ -35,11 +35,7 @@ while button_a.is_pressed(): sleep(50) display.clear() - # amplify volume - GAIN = 2 - #my_recording *= GAIN - for i in range(len(my_track)): - my_track[i] = max(0, min(128 + GAIN * (my_track[i] - 128), 255)) + my_track *= 2 # amplify volume if button_b.is_pressed(): audio.play(my_track, wait=False) level = 0