PRamoneda / HCDF

Harmonic Change Detection Function (HCDF) in Python
GNU Affero General Public License v3.0
12 stars 2 forks source link

Harmonic Change Detection Function (HCDF) library

This library is used to compute HCDF. Here is described the algorithm in detail. As many of the solutions overlap partilly, all the algorithm data computed in the different blocks is saved in out folder in order to not compute same blocks parameterization two times.

Installation

Install Vamp-plugins:

Usage

The library can be imported as a module with import HCDF. All the functions than begins by get are blocks from HCDF function. The rest are auxiliar functions.

HCDF.py act as script allowing the user to print to the console Harmonic Change Detection Function (HCDF) focus on maximizing recall or f-score. It is assumed that the first command line argument is the name file of the audio file located in audio_files and the second one is, if is focus on recall or f-score.

Example of use

With target on maximize f-score:

python3 f-score file/name

With target on maximize recall:

python3 recall file/name

References

https://librosa.github.io https://vamp-plugins.org https://github.com/aframires/TIVlib