audacia/tests/octave
Max Maisel 17ef5b1c75 Fix two bugs in loudness effect (#410)
* Calculate loudness for short or silent selections as well.

In case of selections shorter than 400ms (one momentary loudness block),
take what we have got and divide only be the actual length.

Abort loudness normalization silently if the selected audio is all
silent.

* Fix loudness effect bug when selection includes a gap.

If the selected audio in a track contained a gap between two clips,
an incorrect amount of samples was processed.
2020-01-24 18:04:19 +00:00
..
README.md Start work on new Loudness effect 2019-11-22 19:42:32 +01:00
loudness_test.m Fix two bugs in loudness effect (#410) 2020-01-24 18:04:19 +00:00
run_test.m Fix Loudness effect unit tests 2019-11-22 19:42:33 +01:00

README.md

Unit tests for Audacity effects

These unit tests check the correctness of Audacity's effect calculations against GNU octave. Therefore some simple deterministic and random sample data is generated and passed to Audacity via mod-script-pipe.

To run a test, run: (replace <desired_test.m> with the correct filename)

./run_test.m <desired_test.m>

The tests will print the results to the terminal and will return 0 on success and non-zero on error.

To run those tests you need a Linux system with GNU Octave, octave-forge-signal and Audacity mod-script-pipe installed.