Loading ivas_processing_scripts/generation/process_stereo_items.py +5 −1 Original line number Diff line number Diff line Loading @@ -193,6 +193,7 @@ def generate_stereo_scene( else: source_overlap = 0.0 len_s1 = 0 y = audio.ChannelBasedAudio("STEREO") for i in range(N_sources): # parse parameters from the scene description Loading Loading @@ -223,6 +224,9 @@ def generate_stereo_scene( fs=cfg.IR_fs, ) if i == 0: len_s1 = x.audio.shape[0] # convolve with stereo IR x = reverb_stereo(x, IR) Loading @@ -233,7 +237,7 @@ def generate_stereo_scene( # shift the second (and all other) source files (positive shift creates overlap, negative shift creates a gap) if i > 0: # get the length of the first source file N_delay = len(y.audio[:, 0]) N_delay = len_s1 # add the shift N_delay += int(-source_overlap * x.fs) Loading Loading
ivas_processing_scripts/generation/process_stereo_items.py +5 −1 Original line number Diff line number Diff line Loading @@ -193,6 +193,7 @@ def generate_stereo_scene( else: source_overlap = 0.0 len_s1 = 0 y = audio.ChannelBasedAudio("STEREO") for i in range(N_sources): # parse parameters from the scene description Loading Loading @@ -223,6 +224,9 @@ def generate_stereo_scene( fs=cfg.IR_fs, ) if i == 0: len_s1 = x.audio.shape[0] # convolve with stereo IR x = reverb_stereo(x, IR) Loading @@ -233,7 +237,7 @@ def generate_stereo_scene( # shift the second (and all other) source files (positive shift creates overlap, negative shift creates a gap) if i > 0: # get the length of the first source file N_delay = len(y.audio[:, 0]) N_delay = len_s1 # add the shift N_delay += int(-source_overlap * x.fs) Loading