Good Afternoon from Europe,
I'm new to the list and using music21 to design tools for my music theory classes and to analyse mainly older music from the baroque era. With my students I work mainly in combination with MuseScore.
One thing that I was looking for in music21 is an even better access to figured bass notations in scores and I wanted to share some thoughts on how this could be done:
What I did so far, was adding a new subclass of the note/rest object, that can store information on figures directly, even multiple figures for one note object. I also added functions to parse and export musicxml figured-bass tags to and from the new note/rest object. With the upcoming MuseScore 4 several bugs of the xml import and export will be solved and thats a great chance.
Here is a short overview of the extensions:
- Added FiguredBassNote to figuredBass.notation module
- Added Parser function that handles fb-tag to musicxml.xmlToM21
- Added Export function that creates musicxml fb-tag to musicxml.m21ToXml
In my basic tests this is working quite well so far. I attach a screenshot from my notebook. If anyone has similiar usecases or ideas on how to deal with figured bass information, it would be great to hear from you.
One question could be, whether it might be a better design option to e.g. separate the figured bass information to an extra part or voice. Lilypond is doing that this way.
If you want to take a look at the current state you can see it at my fork here in branch figuredBass-extended-support:
Best from Freiburg, Germany
Moritz