summaryrefslogtreecommitdiff
path: root/input
diff options
context:
space:
mode:
authorMike Solomon <mike@apollinemike.com>2012-09-12 07:59:38 +0200
committerMike Solomon <mike@apollinemike.com>2012-09-12 07:59:38 +0200
commit0d4c79ec0f5d728ac7fe58b87ccf51079ec33766 (patch)
treefcb3dc088197f83dd2bfc4d7a3755de170160e0c /input
parent316403d38136ceadaa8d4b69f696acb76daa2c00 (diff)
Allows the user to override the text property of ChordName
Checks to see if the user has set text and, if so, does not call set_property in the engraver. Compares contents of markups to determine chord equality, allowing successive overridden chords with the same markup content to be identified as equal.
Diffstat (limited to 'input')
-rw-r--r--input/regression/chord-name-override-text.ly13
1 files changed, 13 insertions, 0 deletions
diff --git a/input/regression/chord-name-override-text.ly b/input/regression/chord-name-override-text.ly
new file mode 100644
index 0000000000..4acd549394
--- /dev/null
+++ b/input/regression/chord-name-override-text.ly
@@ -0,0 +1,13 @@
+\version "2.17.2"
+
+\header {
+ texidoc = "Users can override the @code{text} property of
+@code{ChordName}.
+"
+}
+
+\new ChordNames \chordmode {
+ a b c:7
+ \once \override ChordName #'text = #"foo"
+ d
+} \ No newline at end of file