Fixed overflow while converting to mono
This commit is contained in:
parent
0574c4c509
commit
98fe75209c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue