diff --git a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_18LKFS_FrequencySweep.wav b/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_18LKFS_FrequencySweep.wav deleted file mode 100644 index b810827167eb979f1b350ac9a39e1cc0b3656563..0000000000000000000000000000000000000000 Binary files a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_18LKFS_FrequencySweep.wav and /dev/null differ diff --git a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_23LKFS_10000Hz_2ch.wav b/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_23LKFS_10000Hz_2ch.wav deleted file mode 100644 index 07b731812a6c95f206316bf2504cbb8f38fe69e4..0000000000000000000000000000000000000000 Binary files a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_23LKFS_10000Hz_2ch.wav and /dev/null differ diff --git a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_23LKFS_1000Hz_2ch.wav b/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_23LKFS_1000Hz_2ch.wav deleted file mode 100644 index 0eae1797e3e46877a387e6fe5bf3f6ed6dfa3a75..0000000000000000000000000000000000000000 Binary files a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_23LKFS_1000Hz_2ch.wav and /dev/null differ diff --git a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_23LKFS_100Hz_2ch.wav b/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_23LKFS_100Hz_2ch.wav deleted file mode 100644 index 0975aa0a093cd0c199f456986c201e100f34ac8d..0000000000000000000000000000000000000000 Binary files a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_23LKFS_100Hz_2ch.wav and /dev/null differ diff --git a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_23LKFS_2000Hz_2ch.wav b/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_23LKFS_2000Hz_2ch.wav deleted file mode 100644 index dde2c5b62e5673c5f30abeaa6eb95823bdb4dd04..0000000000000000000000000000000000000000 Binary files a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_23LKFS_2000Hz_2ch.wav and /dev/null differ diff --git a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_23LKFS_25Hz_2ch.wav b/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_23LKFS_25Hz_2ch.wav deleted file mode 100644 index 3186d28a535653bbb590c68a6b81750bd44462f5..0000000000000000000000000000000000000000 Binary files a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_23LKFS_25Hz_2ch.wav and /dev/null differ diff --git a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_23LKFS_500Hz_2ch.wav b/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_23LKFS_500Hz_2ch.wav deleted file mode 100644 index 56dd29cdf061e2cec7a77cdf89ce08d5c0f835f5..0000000000000000000000000000000000000000 Binary files a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_23LKFS_500Hz_2ch.wav and /dev/null differ diff --git a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_24LKFS_10000Hz_2ch.wav b/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_24LKFS_10000Hz_2ch.wav deleted file mode 100644 index 525231a892d05bd784cac3d986e5b69a73e2d57a..0000000000000000000000000000000000000000 Binary files a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_24LKFS_10000Hz_2ch.wav and /dev/null differ diff --git a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_24LKFS_1000Hz_2ch.wav b/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_24LKFS_1000Hz_2ch.wav deleted file mode 100644 index 1b3539292b5ebc04a5be040e42823e5d1e722894..0000000000000000000000000000000000000000 Binary files a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_24LKFS_1000Hz_2ch.wav and /dev/null differ diff --git a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_24LKFS_100Hz_2ch.wav b/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_24LKFS_100Hz_2ch.wav deleted file mode 100644 index 6e7f15793efaa169bfab9428a7562fb36a12db8c..0000000000000000000000000000000000000000 Binary files a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_24LKFS_100Hz_2ch.wav and /dev/null differ diff --git a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_24LKFS_2000Hz_2ch.wav b/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_24LKFS_2000Hz_2ch.wav deleted file mode 100644 index 4bcc21503ce390c91f031bb6463c76007d854eb1..0000000000000000000000000000000000000000 Binary files a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_24LKFS_2000Hz_2ch.wav and /dev/null differ diff --git a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_24LKFS_25Hz_2ch.wav b/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_24LKFS_25Hz_2ch.wav deleted file mode 100644 index ae01f4b78cb39cf36abe2d27ba4362b4d7ba2f3a..0000000000000000000000000000000000000000 Binary files a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_24LKFS_25Hz_2ch.wav and /dev/null differ diff --git a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_24LKFS_500Hz_2ch.wav b/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_24LKFS_500Hz_2ch.wav deleted file mode 100644 index a2d1c4fc8bb5c5446ced6516aadccf820a5e0a82..0000000000000000000000000000000000000000 Binary files a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_24LKFS_500Hz_2ch.wav and /dev/null differ diff --git a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_AbsGateTest.wav b/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_AbsGateTest.wav deleted file mode 100644 index e2e5dc6a1dd9708a36f5dad402326eceb73d10a0..0000000000000000000000000000000000000000 Binary files a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_AbsGateTest.wav and /dev/null differ diff --git a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_RelGateTest.wav b/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_RelGateTest.wav deleted file mode 100644 index 08fb5d979acdeeccbd103c46114d644925e73f92..0000000000000000000000000000000000000000 Binary files a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Comp_RelGateTest.wav and /dev/null differ diff --git a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Conf_Mono_Voice+Music-23LKFS.wav b/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Conf_Mono_Voice+Music-23LKFS.wav deleted file mode 100644 index 68aa9e13161ea75998edd5e5dcff36fdca2a4e79..0000000000000000000000000000000000000000 Binary files a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Conf_Mono_Voice+Music-23LKFS.wav and /dev/null differ diff --git a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Conf_Mono_Voice+Music-24LKFS.wav b/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Conf_Mono_Voice+Music-24LKFS.wav deleted file mode 100644 index 8854668d0a1ffcfcd1688cfae4b181c3cb8f8d92..0000000000000000000000000000000000000000 Binary files a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Conf_Mono_Voice+Music-24LKFS.wav and /dev/null differ diff --git a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Conf_Stereo_VinL+R-23LKFS.wav b/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Conf_Stereo_VinL+R-23LKFS.wav deleted file mode 100644 index 624195b28ff8c2950461a8ee52da12c9f03438c0..0000000000000000000000000000000000000000 Binary files a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Conf_Stereo_VinL+R-23LKFS.wav and /dev/null differ diff --git a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Conf_Stereo_VinL+R-24LKFS.wav b/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Conf_Stereo_VinL+R-24LKFS.wav deleted file mode 100644 index 3be27c46196a73c92142b9ef4236f8f0a8f4568f..0000000000000000000000000000000000000000 Binary files a/QUT_WSJ0_scripts/pyloudnorm/tests/data/1770-2_Conf_Stereo_VinL+R-24LKFS.wav and /dev/null differ diff --git a/QUT_WSJ0_scripts/pyloudnorm/tests/data/piano.wav b/QUT_WSJ0_scripts/pyloudnorm/tests/data/piano.wav deleted file mode 100644 index 3cad96fd4b85fc26317daa20aa6f7d4acfcc15ca..0000000000000000000000000000000000000000 Binary files a/QUT_WSJ0_scripts/pyloudnorm/tests/data/piano.wav and /dev/null differ diff --git a/QUT_WSJ0_scripts/pyloudnorm/tests/data/sine_1000.wav b/QUT_WSJ0_scripts/pyloudnorm/tests/data/sine_1000.wav deleted file mode 100644 index c54393bc9b2d64fdcdea2d433bcfe0f0c37c74ac..0000000000000000000000000000000000000000 Binary files a/QUT_WSJ0_scripts/pyloudnorm/tests/data/sine_1000.wav and /dev/null differ diff --git a/QUT_WSJ0_scripts/pyloudnorm/tests/test_loudness.py b/QUT_WSJ0_scripts/pyloudnorm/tests/test_loudness.py deleted file mode 100644 index 6d77b556e5d437f1ef8007b058a8e6f055ee241a..0000000000000000000000000000000000000000 --- a/QUT_WSJ0_scripts/pyloudnorm/tests/test_loudness.py +++ /dev/null @@ -1,201 +0,0 @@ -import os -import pyloudnorm as pyln -import soundfile as sf -import numpy as np - -def test_integrated_loudness(): - - data, rate = sf.read("tests/data/sine_1000.wav") - meter = pyln.Meter(rate) - loudness = meter.integrated_loudness(data) - - assert loudness == -3.0523438444331137 - -def test_peak_normalize(): - - data = np.array(0.5) - norm = pyln.normalize.peak(data, 0.0) - - assert norm == 1.0 - -def test_loudness_normalize(): - - data, rate = sf.read("tests/data/sine_1000.wav") - meter = pyln.Meter(rate) - loudness = meter.integrated_loudness(data) - norm = pyln.normalize.loudness(data, loudness, -6.0) - loudness = meter.integrated_loudness(norm) - - assert loudness == -6.0 - -def test_rel_gate_test(): - - data, rate = sf.read("tests/data/1770-2_Comp_RelGateTest.wav") - meter = pyln.Meter(rate) - loudness = meter.integrated_loudness(data) - - targetLoudness = -10.0 - assert targetLoudness - 0.1 <= loudness <= targetLoudness + 0.1 - -def test_abs_gate_test(): - - data, rate = sf.read("tests/data/1770-2_Comp_AbsGateTest.wav") - meter = pyln.Meter(rate) - loudness = meter.integrated_loudness(data) - - targetLoudness = -69.5 - assert targetLoudness - 0.1 <= loudness <= targetLoudness + 0.1 - -def test_24LKFS_25Hz_2ch(): - - data, rate = sf.read("tests/data/1770-2_Comp_24LKFS_25Hz_2ch.wav") - meter = pyln.Meter(rate) - loudness = meter.integrated_loudness(data) - - targetLoudness = -24.0 - assert targetLoudness - 0.1 <= loudness <= targetLoudness + 0.1 - -def test_24LKFS_100Hz_2ch(): - - data, rate = sf.read("tests/data/1770-2_Comp_24LKFS_100Hz_2ch.wav") - meter = pyln.Meter(rate) - loudness = meter.integrated_loudness(data) - - targetLoudness = -24.0 - assert targetLoudness - 0.1 <= loudness <= targetLoudness + 0.1 - -def test_24LKFS_500Hz_2ch(): - - data, rate = sf.read("tests/data/1770-2_Comp_24LKFS_500Hz_2ch.wav") - meter = pyln.Meter(rate) - loudness = meter.integrated_loudness(data) - - - targetLoudness = -24.0 - assert targetLoudness - 0.1 <= loudness <= targetLoudness + 0.1 - -def test_24LKFS_1000Hz_2ch(): - - data, rate = sf.read("tests/data/1770-2_Comp_24LKFS_1000Hz_2ch.wav") - meter = pyln.Meter(rate) - loudness = meter.integrated_loudness(data) - - targetLoudness = -24.0 - assert targetLoudness - 0.1 <= loudness <= targetLoudness + 0.1 - -def test_24LKFS_2000Hz_2ch(): - - data, rate = sf.read("tests/data/1770-2_Comp_24LKFS_2000Hz_2ch.wav") - meter = pyln.Meter(rate) - loudness = meter.integrated_loudness(data) - - targetLoudness = -24.0 - assert targetLoudness - 0.1 <= loudness <= targetLoudness + 0.1 - -def test_24LKFS_10000Hz_2ch(): - - data, rate = sf.read("tests/data/1770-2_Comp_24LKFS_10000Hz_2ch.wav") - meter = pyln.Meter(rate) - loudness = meter.integrated_loudness(data) - - targetLoudness = -24.0 - assert targetLoudness - 0.1 <= loudness <= targetLoudness + 0.1 - -def test_23LKFS_25Hz_2ch(): - - data, rate = sf.read("tests/data/1770-2_Comp_23LKFS_25Hz_2ch.wav") - meter = pyln.Meter(rate) - loudness = meter.integrated_loudness(data) - - targetLoudness = -23.0 - assert targetLoudness - 0.1 <= loudness <= targetLoudness + 0.1 - -def test_23LKFS_100Hz_2ch(): - - data, rate = sf.read("tests/data/1770-2_Comp_23LKFS_100Hz_2ch.wav") - meter = pyln.Meter(rate) - loudness = meter.integrated_loudness(data) - - targetLoudness = -23.0 - assert targetLoudness - 0.1 <= loudness <= targetLoudness + 0.1 - -def test_23LKFS_500Hz_2ch(): - - data, rate = sf.read("tests/data/1770-2_Comp_23LKFS_500Hz_2ch.wav") - meter = pyln.Meter(rate) - loudness = meter.integrated_loudness(data) - - targetLoudness = -23.0 - assert targetLoudness - 0.1 <= loudness <= targetLoudness + 0.1 - -def test_23LKFS_1000Hz_2ch(): - - data, rate = sf.read("tests/data/1770-2_Comp_23LKFS_1000Hz_2ch.wav") - meter = pyln.Meter(rate) - loudness = meter.integrated_loudness(data) - - targetLoudness = -23.0 - assert targetLoudness - 0.1 <= loudness <= targetLoudness + 0.1 - -def test_23LKFS_2000Hz_2ch(): - - data, rate = sf.read("tests/data/1770-2_Comp_23LKFS_2000Hz_2ch.wav") - meter = pyln.Meter(rate) - loudness = meter.integrated_loudness(data) - - targetLoudness = -23.0 - assert targetLoudness - 0.1 <= loudness <= targetLoudness + 0.1 - -def test_23LKFS_10000Hz_2ch(): - - data, rate = sf.read("tests/data/1770-2_Comp_23LKFS_10000Hz_2ch.wav") - meter = pyln.Meter(rate) - loudness = meter.integrated_loudness(data) - - targetLoudness = -23.0 - assert targetLoudness - 0.1 <= loudness <= targetLoudness + 0.1 - -def test_18LKFS_frequency_sweep(): - - data, rate = sf.read("tests/data/1770-2_Comp_18LKFS_FrequencySweep.wav") - meter = pyln.Meter(rate) - loudness = meter.integrated_loudness(data) - - targetLoudness = -18.0 - assert targetLoudness - 0.1 <= loudness <= targetLoudness + 0.1 - -def test_conf_stereo_vinL_R_23LKFS(): - - data, rate = sf.read("tests/data/1770-2_Conf_Stereo_VinL+R-23LKFS.wav") - meter = pyln.Meter(rate) - loudness = meter.integrated_loudness(data) - - targetLoudness = -23.0 - assert targetLoudness - 0.1 <= loudness <= targetLoudness + 0.1 - -def test_conf_monovoice_music_24LKFS(): - - data, rate = sf.read("tests/data/1770-2_Conf_Mono_Voice+Music-24LKFS.wav") - meter = pyln.Meter(rate) - loudness = meter.integrated_loudness(data) - - targetLoudness = -24.0 - assert targetLoudness - 0.1 <= loudness <= targetLoudness + 0.1 - -def conf_monovoice_music_24LKFS(): - - data, rate = sf.read("tests/data/1770-2_Conf_Mono_Voice+Music-24LKFS.wav") - meter = pyln.Meter(rate) - loudness = meter.integrated_loudness(data) - - targetLoudness = -24.0 - assert targetLoudness - 0.1 <= loudness <= targetLoudness + 0.1 - -def test_conf_monovoice_music_23LKFS(): - - data, rate = sf.read("tests/data/1770-2_Conf_Mono_Voice+Music-23LKFS.wav") - meter = pyln.Meter(rate) - loudness = meter.integrated_loudness(data) - - targetLoudness = -23.0 - assert targetLoudness - 0.1 <= loudness <= targetLoudness + 0.1 \ No newline at end of file