The error is caused by these elements in part 'P1':
<measure number="36" width="187.79">
<attributes>
<clef>
<sign>F</sign>
<line>5</line>
</clef>
</attributes>
The 'sign' and 'line' elements are used to determine a key for this dictionary in my program :
CLEF_SIGNS = {
'G,2': 'Treble',
'F,4': 'Bass',
'C,3': 'Alto',
'C,4': 'Tenor',
'percussion,None': 'Percussion'
}is
So 'F,5' is an invalid key.
IMHO this can be caused by:
- The score has a bass clef positioned one line above the 'normal' bass clef. NWC does not support it, neither does my program.
- Or: Audiveris incorrectly read the position. (In part 'P2', measure number "0", I found a normal 'F,4' clef)
So maybe I could change my program to ignore the line number (except for the 'C' clefs) and print a warning if the line number differs from the 'normal' one?