Closed adhooge closed 1 year ago
Actually I notice that my fix is quite dirty and is not the right solution because of the way I change chordOrNote
.
I don't know what is the best way to fix the problem
Thanks for the report. Going to mark as a duplicate of #909, so please feel free to join the discussion there. There were a couple ways forward suggested at https://github.com/cuthbertLab/music21/issues/909#issuecomment-796903557 and https://github.com/cuthbertLab/music21/issues/909#issuecomment-797452566, if you're interested in pursuing a PR, which would be welcome!
music21 version
9.0.0a6
my fork is slightly behind main branch but I've checked that it has not been fixedProblem summary
When a note inside a chord has
FretIndication
andStringIndication
articulations, they are not exported to musicXML. This is a problem because all notes have a fret and a string in tablatures, even in chords. If the actual fret or string is not present in themusicxml
file, visualization softwares usually don't throw a warning but recompute the position based solely on pitch information, which returns the wrong fretboard position in most cases.Quickfix
On my computer, I've modified the
m21ToXml.py
file like so (see the corresponding commit)I'd be happy to submit it properly as a PR. Is there something to do in other files? I did not check if parsing musicXML works fine in that case because it was not relevant to my use case.