]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4452/3: Add Staff alias to ChordNames context
authorDavid Kastrup <dak@gnu.org>
Mon, 15 Jun 2015 16:08:33 +0000 (18:08 +0200)
committerDavid Kastrup <dak@gnu.org>
Sat, 20 Jun 2015 11:06:07 +0000 (13:06 +0200)
That way, Staff-level overrides like \key, \transposition and others
arrive in the ChordNames context.

ly/engraver-init.ly
ly/performer-init.ly

index 5d695ebf5c7b1123977df2d5735c5ff3bd4a1683..c6b8bfcd2765b9cf0d89cf9dfdba636bd9cd9e14 100644 (file)
@@ -499,6 +499,8 @@ printing of a single line of lyrics."
 \context {
   \type "Engraver_group"
   \name "ChordNames"
+  \alias Staff                 % Catch Staff-level overrides like
+                               % \key, \transposition
   \description "Typesets chord names."
 
   \consists "Output_property_engraver"
index 8094bb9043d7f3a49324bdad8debf575351167a1..0c4a03af59379d545c3f2aa8d5344e7f18a372dc 100644 (file)
 \context {
   \Voice                       % We want all the actual performers
   \name ChordNames
+  \alias Staff                 % Catch Staff-level overrides like
+                               % \key, \transposition
   \consists "Staff_performer"
 }