This directory contains compatibility tests for librosa's core features.
The MATLAB script makeTestData.m generates input/output examples under the data/ directory.
After generating the test data, run nosetests -v to perform tests and verify the outputs.
The data files for numerical equivalence tests are generated by the makeTestData matlab program. This relies on a variety of matlab functions which can be downloaded from the following URLs:
- http://www.ee.columbia.edu/~dpwe/resources/matlab/rastamat/
- http://www.ee.columbia.edu/~dpwe/resources/matlab/chroma-ansyn/
The following RASTAMAT functions are required to run the makeTestData.m matlab program:
mel2hz.mhttp://www.ee.columbia.edu/~dpwe/resources/matlab/rastamat/mel2hz.mhz2mel.mhttp://www.ee.columbia.edu/~dpwe/resources/matlab/rastamat/hz2mel.mfft2melmx.mhttp://www.ee.columbia.edu/~dpwe/resources/matlab/rastamat/fft2melmx.m
STFT/ISTFT are compared to those available here:
stft.mhttp://www.ee.columbia.edu/ln/rosa/matlab/pvoc/stft.mistft.mhttp://www.ee.columbia.edu/ln/rosa/matlab/pvoc/istft.m
Beat tracking implementations are provided here:
tempo2.mhttp://labrosa.ee.columbia.edu/projects/beattrack/tempo2.mbeat2.mhttp://labrosa.ee.columbia.edu/projects/beattrack/beat2.m
The chroma-ansyn package provides the remaining functions: