Fixed overflow while converting to mono

This commit is contained in:
Alexandre 2024-05-28 22:46:07 +02:00
parent 0574c4c509
commit 98fe75209c
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ def void_freq(song_name, offset, songlen, increment, minfreq, maxfreq, upperthr,
if(is_stereo): if(is_stereo):
print("Converting to mono...") print("Converting to mono...")
for x in range(len(raw_global_data)): 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: else:
global_data = raw_global_data global_data = raw_global_data