X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Fmusicxml2ly.py;fp=scripts%2Fmusicxml2ly.py;h=a898e64a71622535e9306c5021362ccc169f55b6;hb=75691ab991a6624021ac07870dcce9f996395053;hp=5d44c39cfb30374cd20f2502a4ef37a12dc7c9c3;hpb=9d3a999b3ae3502633858c50185c0180949d405c;p=lilypond.git diff --git a/scripts/musicxml2ly.py b/scripts/musicxml2ly.py index 5d44c39cfb..a898e64a71 100644 --- a/scripts/musicxml2ly.py +++ b/scripts/musicxml2ly.py @@ -1784,8 +1784,12 @@ def musicxml_note_to_lily_main_event (n): acc = n.get_maybe_exist_named_child ('accidental') if acc: - # let's not force accs everywhere. - event.cautionary = acc.cautionary + # AccidentalCautionary in lily has parentheses + # so treat accidental explicitly in parentheses as cautionary + if hasattr(acc, 'parentheses') and acc.parentheses == "yes": + event.cautionary = True + else: + event.cautionary = acc.cautionary # TODO: Handle editorial accidentals # TODO: Handle the level-display setting for displaying brackets/parentheses