From 75691ab991a6624021ac07870dcce9f996395053 Mon Sep 17 00:00:00 2001 From: Rodolfo Zitellini Date: Tue, 19 Jun 2012 17:24:28 +0200 Subject: [PATCH] musicxml2ly: Treat accidentals parentheses as cautionary --- scripts/musicxml2ly.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 2.39.5