From 98fe75209cb739c556c811498cb363910312e295 Mon Sep 17 00:00:00 2001 From: Alexandre Date: Tue, 28 May 2024 22:46:07 +0200 Subject: [PATCH] Fixed overflow while converting to mono --- sound_process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound_process.py b/sound_process.py index 5427eb2..3a20ec8 100755 --- a/sound_process.py +++ b/sound_process.py @@ -318,7 +318,7 @@ def void_freq(song_name, offset, songlen, increment, minfreq, maxfreq, upperthr, if(is_stereo): print("Converting to mono...") for x in range(len(raw_global_data)): - global_data[x] = raw_global_data[x][0] + raw_global_data[x][1] + global_data[x] = raw_global_data[x][0]/2 + raw_global_data[x][1]/2 else: global_data = raw_global_data