X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Fabc2ly.py;h=752f97f3be6a27bc785a97e6411b6c2d3b72e739;hb=720bdb29cfac44d9469a54d44bb002e1ccab15f9;hp=15161032f2b251155b69cfc3b1ef4c58fb5775c0;hpb=ba9e4878d210b46deca1a70dd961afbf903602b0;p=lilypond.git diff --git a/scripts/abc2ly.py b/scripts/abc2ly.py index 15161032f2..752f97f3be 100644 --- a/scripts/abc2ly.py +++ b/scripts/abc2ly.py @@ -233,7 +233,7 @@ def dump_default_bar (outf): Nowadays abc2ly outputs explicits barlines (?) """ ## < 2.2 - outf.write ("\n\\set Score.defaultBarType = \"empty\"\n") + outf.write ("\n\\set Score.defaultBarType = \"\"\n") def dump_slyrics (outf): @@ -1124,12 +1124,12 @@ old_bar_dict = { '|]' : '|.', '||' : '||', '[|' : '||', -':|' : ':|', +':|' : ':|.', '|:' : '|:', -'::' : ':|:', +'::' : ':|.|:', '|1' : '|', '|2' : '|', -':|2' : ':|', +':|2' : ':|.', '|' : '|' } bar_dict = { @@ -1203,6 +1203,9 @@ def try_parse_bar (str,state): clear_bar_acc(state) close_beam_state(state) + if str[:1] == '}': + close_beam_state(state) + if bs <> None or state.next_bar != '': if state.parsing_tuplet: state.parsing_tuplet =0