N.B. All content of this repository should be free of copyright. If you think that some score is under copyright and I shouldn't distribute it, please open an issue.
EWLD (Enhanced Wikifonia Leadsheet Dataset) is a music leadsheet dataset that comes with a lot of metadata about composers, works, lyrics and features. It is designed for musicological and research purposes.
OpenEWLD is a dataset extracted from EWLD containing only public domain scores. You can redistribuite this worl as you want.
This dataset comes from the old Wikifonia archive that is available on the web. I just filtered its files to get only the ones compatible with algorithm descripted in my thesis that is a graph-based representation of musical scores aimed at computational music analysis, computational musicology and music information retrieval.
Moreover I added some notions taken from secondhandsongs.com and discogs.com, such as the correct title, authors, year of composition, authors' year of birth and death and nationality, language, musical genres and styles. Also, I added a lot of features relative to each music score computed through music21 and I separeted the lyrics where available.
The database was extracted with a python >=3.6 script from the old Wikifonia dataset. You can regenerate it simply launching the script with this command:
python3 EWLDcreation.py -d <path-to-wikifonia>
You will need a stable internet connection and some python libraries, that you can install using the following command:
sudo pip3 install discogs_client music21\\
requests argparse csv json operator os sys\\
traceback zipfile sqlite3 collections typing\\
time
Propably, most of them are already installed in your python3 distribution.
If internet connection goes down, you'll find some file in a directory called exception_dir. Delete it and rerun the script a few times without changing anything. If exceptions still persist, please, contact me.
Note that the file db_creation.sql must be in the working directory. It contains the SQL script needed to create the initial tables.
Finally, to create OpenEWLD you have to extract a subset containing only public domain scores by simply running this command from the same directory in which you find this README:
python3 OpenEWLDcreation.py
The database is organized as follows:
dataset you will find a directory for each composer and within it a directory for each score by that composer (or combination of composers). You will also find a directory called [Unknown] for all scores without a recognized composer.except_dir, if it exist there will be scores and logs relative to files that cannot be parsed correctlyEWLD.db you will find a SQLite3 database which contains all metatags and file pathNote that all scores are filtered and edited so that they have the following properties:
strong modulations (see paragraph about tonality field in the features table of the db)The database EWLD.db is a SQLite3 database. You can use any software to read it, for example SQLiteStudio which is simple, tiny and portable. With it you can also extract XML, HTML, JSON, SQL and PDF files.
It contains 6 tables, each described in the following paragraphs.
works tableEach entry represents a work, as stated in secondhandsongs.com. A work is a music composition: it can have several recordings by different performers, but the music opera is only one.
Actually, because of the noisiness of beginning dataset, you could also find entries representing derived works. Most of them should have the authors marked as '[Unknown]'.
Fields are:
authors tableThis represents the authors. Fields are:
[1], [2], etc.features tableEach entry describes a work from a musical point of view.
features.base.getIndex('<name>') you get the index of a certain feature, that is equal to the row index in the csv file;[x.id for x in features.extractorsById('all')] you can get the list of features id in the same order as in the csv;work_author tableThis table is needed to join works table and author table
work_genres and work_styles tablesThese tables give to each work a style and genre classification in a 2D space with a fuzzy approach. By example, a work genre could be identified by a 2D vector ('rock', 'pop'). Each entry of these tables represent an entry of the vector.
Also, each entry of the vector is associated with a occurrences field that models the certainty of that genre for that work.
A good way to infer genre and/or style of work is to check if one of the two vector entries has more than twice occurences of the other. If yes, you could consider it as genre or style of the work, otherwise you can represent its genre/style using two coordinates.
These tables create association between a work and genres derived by discogs.com following this procedure:
title composer1 composer2 etc.discogs categorizationPart of the database coming from discogs.com (namely genres and styles info) is released under CC0 license.
Part of the database coming from secondhandsongs.com (namely authors info, works titles and performance date) is released under CC BY-NC 3.0.
Compressed MusicXML files and Lyrics files are intended to contain only Public Domain content.
The remaining part of this software, included database info, is released under MIT license:
Copyright (c) 2018, Federico Simonetta, federicosimonetta.it
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Simonetta, Federico. "Graph based representation of the music symbolic level. A music information retrieval application." (2018). link Google Scholar
$ claude mcp add OpenEWLD \
-- python -m otcore.mcp_server <graph>