From 7b8a0b5a0d4723ea7ddedef8cae1a79695f77f50 Mon Sep 17 00:00:00 2001
From: janneke <janneke>
Date: Mon, 19 Apr 2004 23:18:39 +0000
Subject: [PATCH] Oops use [\]proper[ty] 2.2 syntax.

---
 ChangeLog         |  4 ++++
 scripts/abc2ly.py | 12 +++++++++---
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 734a6fb249..6c7f4b279c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-04-20  Jan Nieuwenhuizen  <janneke@gnu.org>
+
+	* scripts/abc2ly.py: Oops use [\]proper[ty] 2.2 syntax.
+
 2004-04-19  Jan Nieuwenhuizen  <janneke@gnu.org>
 
 	* 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):
-- 
2.39.5