makammusicbrainz v1.2.0
makammusicbrainz
Packages to fetch metadata related to the makam music recordings and works from MusicBrainz
Usage
# audio metadata
from makammusicbrainz.AudioMetadata import AudioMetadata
audioMetadata = AudioMetadata(get_work_attributes=True, print_warnings=True)
audio_meta = audioMetadata.from_musicbrainz(rec_input)
You can either supply recording MBID or recording filepath as the rec_input
# work metadata
from makammusicbrainz.WorkMetadata import WorkMetadata
workMetadata = WorkMetadata(print_warnings=True)
work_meta = workMetadata.from_musicbrainz(mbid)
Please refer to demo.ipynb for an interactive demo.
Installation
If you want to install makammusicbrainz, it is recommended to install the package and its dependencies into a virtualenv. In the terminal, do the following:
virtualenv env
source env/bin/activate
python setup.py install
If you want to be able to edit files and have the changes be reflected, then
install compmusic like this instead
pip install -e .
Now you can install the rest of the dependencies:
pip install -r requirements
Changelog
- Improved code quality
- Modularized WorkMetadata
- Minor I/O changes
Authors
Sertan Senturk
contact@sertansenturk.com
Reference
Thesis
Acknowledgements
We would like to thank Dr. Robert Grafias for allowing us to use his makam music collection in our research (in this repository the recording with MBID: 635530df-8e13-4587-a94d-32f3c1643ca6).