From: Jan Nieuwenhuizen Date: Mon, 19 Apr 2004 23:18:39 +0000 (+0000) Subject: Oops use [\]proper[ty] 2.2 syntax. X-Git-Tag: release/2.3.1~56 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=265064f413a50cf56b6ae6d2eb421c67b6a67945;p=lilypond.git Oops use [\]proper[ty] 2.2 syntax. --- diff --git a/ChangeLog b/ChangeLog index 734a6fb249..6c7f4b279c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-04-20 Jan Nieuwenhuizen + + * scripts/abc2ly.py: Oops use [\]proper[ty] 2.2 syntax. + 2004-04-19 Jan Nieuwenhuizen * scripts/abc2ly.py: ABC beams preserve support (courtesy Guy diff --git a/scripts/abc2ly.py b/scripts/abc2ly.py index 943cc94b3b..2e6181b166 100644 --- a/scripts/abc2ly.py +++ b/scripts/abc2ly.py @@ -163,10 +163,14 @@ def select_voice (name, rol): check_clef(value) elif keyword == "name": value = re.sub ('\\\\','\\\\\\\\', value) - voices_append ("\\property Staff.instrument = %s\n" % value ) + ## < 2.2 + ##voices_append ("\\property Staff.instrument = %s\n" % value ) + voices_append ("\\set Staff.instrument = %s\n" % value ) + __main__.part_names = 1 elif keyword == "sname" or keyword == "snm": - voices_append ("\\property Staff.instr = %s\n" % value ) + ##voices_append ("\\property Staff.instr = %s\n" % value ) + voices_append ("\\set Staff.instr = %s\n" % value ) else: break @@ -191,7 +195,9 @@ def dump_default_bar (outf): """ Nowadays abc2ly outputs explicits barlines (?) """ - outf.write ("\n\\property Score.defaultBarType=\"empty\"\n") + ## < 2.2 + ##outf.write ("\n\\property Score.defaultBarType = \"empty\"\n") + outf.write ("\n\\set Score.defaultBarType = \"empty\"\n") def dump_slyrics (outf):