summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0c0610e)
As commented in the patch
I did not find any
documentation if a chord
element can contain multiple
lyrics, so I just assumed that
the first note of the chord
contained the Lyrics
(consistant with Finale
and Muscore exports).
def is_rest(elem):
return elem.get_typed_children(musicxml.Rest)
def is_rest(elem):
return elem.get_typed_children(musicxml.Rest)
+ def is_chord(elem):
+ return elem.get_typed_children(musicxml.Chord)
+
def is_note_and_not_rest(elem):
return is_note(elem) and not is_rest(elem)
def is_note_and_not_rest(elem):
return is_note(elem) and not is_rest(elem)
not note_has_lyric_belonging_to_lyric_part:
result.append('\skip1 ')
# Note does not have any lyric attached to it.
not note_has_lyric_belonging_to_lyric_part:
result.append('\skip1 ')
# Note does not have any lyric attached to it.
+ elif is_chord(elem):
+ # note without lyrics part of a chord. MusicXML format is
+ # unclear if a chord element could contain a lyric, lets
+ # asume that we do not want to put a skip here.
+ continue
elif is_note_and_not_rest(elem):
result.append('\skip1 ')
elif is_note_and_not_rest(elem):
result.append('\skip1 ')