Commit 19619ed0 authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

fix formatting

parent 884d79aa
Loading
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -41,7 +41,11 @@ from ivas_processing_scripts.audiotools import audio, audioarray, audiofile
from ivas_processing_scripts.audiotools.convert.masa import convert_masa
from ivas_processing_scripts.audiotools.convert.scenebased import render_sba_to_masa
from ivas_processing_scripts.audiotools.wrappers.bs1770 import loudness_norm
from ivas_processing_scripts.audiotools.wrappers.reverb import reverb_foa, reverb_hoa2, reverb_hoa3
from ivas_processing_scripts.audiotools.wrappers.reverb import (
    reverb_foa,
    reverb_hoa2,
    reverb_hoa3,
)
from ivas_processing_scripts.generation import config
from ivas_processing_scripts.utils import apply_func_parallel

@@ -327,9 +331,7 @@ def generate_MASA_scene(
                offset = source_shift
            else:
                # insert zeros to the new SBA source signal to shift it right
                audioarray.trim(
                    x.audio, x.fs, limits=[delta_offset, 0], samples=True
                )
                audioarray.trim(x.audio, x.fs, limits=[delta_offset, 0], samples=True)

            # adjust the length of the audio source signal
            delta_length = len(x.audio) - len(y_int.audio)
@@ -449,7 +451,9 @@ def generate_MASA_scene(
    ):
        # create uniformly distributed noise between -4 and 4
        np.random.seed(SEED_RANDOM_NOISE)
        noise = np.random.randint(low=-4, high=5, size=y_int.audio.shape).astype("float")
        noise = np.random.randint(low=-4, high=5, size=y_int.audio.shape).astype(
            "float"
        )
        y_int.audio += noise

    # apply fade-in and fade-out