mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 23:59:41 +02:00
* 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.
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.