From: Rodolfo Zitellini Date: Tue, 19 Jun 2012 15:24:28 +0000 (+0200) Subject: musicxml2ly: Treat accidentals parentheses as cautionary X-Git-Tag: release/2.15.41-1~22 X-Git-Url: https://git.donarmstrong.com/lilypond.git?a=commitdiff_plain;h=75691ab991a6624021ac07870dcce9f996395053;p=lilypond.git musicxml2ly: Treat accidentals parentheses as cautionary --- 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