Skip to content

makammusicbrainz v1.2.1

Compare
Choose a tag to compare
@sertansenturk sertansenturk released this 11 Apr 01:56
· 37 commits to master since this release

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

  • Fixed mbid input for audio metadata

Authors

Sertan Senturk
contact@sertansenturk.com

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).