db8f2bf3f632b642ee05c5ea710ada5bdd0fdc4d,test/test_sox_compatibility.py,TestFunctionalFiltering,test_treble,#TestFunctionalFiltering#,222

Before Change


        q = 0.707
        gain = 40

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

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

        self.assertEqual(output_waveform, sox_output_waveform, atol=1e-4, rtol=1e-5)

After Change


        result = F.band_biquad(data, sample_rate, central_freq, q, noise)
        self.assert_sox_effect(result, path, ["band", central_freq, f"{q}q"])

    def test_treble(self):
        central_freq = 1000
        q = 0.707
        gain = 40
        sample_rate = 8000

        data, path = self.get_whitenoise(sample_rate)
        result = F.treble_biquad(data, sample_rate, gain, central_freq, q)
        self.assert_sox_effect(result, path, ["treble", gain, central_freq, f"{q}q"])

    def test_bass(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 8

Non-data size: 17

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_treble


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_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_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_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_treble


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_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_bandpass_without_csg