db8f2bf3f632b642ee05c5ea710ada5bdd0fdc4d,test/test_sox_compatibility.py,TestFunctionalFiltering,test_bandreject,#TestFunctionalFiltering#,170

Before Change


        central_freq = 1000
        q = 0.707

        E = torchaudio.sox_effects.SoxEffectsChain()
        E.set_input_file(self.noise_filepath)
        E.append_effect_to_chain("bandreject", [central_freq, str(q) + "q"])
        sox_output_waveform, sr = E.sox_build_flow_effects()

        output_waveform = F.bandreject_biquad(self.noise_waveform, self.NOISE_SAMPLE_RATE,
                                              central_freq, q)

After Change


        q = 0.707
        sample_rate = 8000

        data, path = self.get_whitenoise(sample_rate)
        result = F.bandreject_biquad(data, sample_rate, central_freq, q)
        self.assert_sox_effect(result, path, ["bandreject", central_freq, f"{q}q"])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 8

Non-data size: 13

Instances


Project Name: pytorch/audio
Commit Name: db8f2bf3f632b642ee05c5ea710ada5bdd0fdc4d
Time: 2020-07-14
Author: 855818+mthrok@users.noreply.github.com
File Name: test/test_sox_compatibility.py
Class Name: TestFunctionalFiltering
Method Name: test_bandreject


Project Name: pytorch/audio
Commit Name: db8f2bf3f632b642ee05c5ea710ada5bdd0fdc4d
Time: 2020-07-14
Author: 855818+mthrok@users.noreply.github.com
File Name: test/test_sox_compatibility.py
Class Name: TestFunctionalFiltering
Method Name: test_bass


Project Name: pytorch/audio
Commit Name: db8f2bf3f632b642ee05c5ea710ada5bdd0fdc4d
Time: 2020-07-14
Author: 855818+mthrok@users.noreply.github.com
File Name: test/test_sox_compatibility.py
Class Name: TestFunctionalFiltering
Method Name: test_allpass


Project Name: pytorch/audio
Commit Name: db8f2bf3f632b642ee05c5ea710ada5bdd0fdc4d
Time: 2020-07-14
Author: 855818+mthrok@users.noreply.github.com
File Name: test/test_sox_compatibility.py
Class Name: TestFunctionalFiltering
Method Name: test_band_with_noise


Project Name: pytorch/audio
Commit Name: db8f2bf3f632b642ee05c5ea710ada5bdd0fdc4d
Time: 2020-07-14
Author: 855818+mthrok@users.noreply.github.com
File Name: test/test_sox_compatibility.py
Class Name: TestFunctionalFiltering
Method Name: test_bandpass_with_csg


Project Name: pytorch/audio
Commit Name: db8f2bf3f632b642ee05c5ea710ada5bdd0fdc4d
Time: 2020-07-14
Author: 855818+mthrok@users.noreply.github.com
File Name: test/test_sox_compatibility.py
Class Name: TestFunctionalFiltering
Method Name: test_band_without_noise


Project Name: pytorch/audio
Commit Name: db8f2bf3f632b642ee05c5ea710ada5bdd0fdc4d
Time: 2020-07-14
Author: 855818+mthrok@users.noreply.github.com
File Name: test/test_sox_compatibility.py
Class Name: TestFunctionalFiltering
Method Name: test_bandpass_without_csg


Project Name: pytorch/audio
Commit Name: db8f2bf3f632b642ee05c5ea710ada5bdd0fdc4d
Time: 2020-07-14
Author: 855818+mthrok@users.noreply.github.com
File Name: test/test_sox_compatibility.py
Class Name: TestFunctionalFiltering
Method Name: test_treble