]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 3651: Simplify incipit.ly snippet
authorDavid Kastrup <dak@gnu.org>
Thu, 7 Nov 2013 23:14:38 +0000 (00:14 +0100)
committerDavid Kastrup <dak@gnu.org>
Wed, 13 Nov 2013 14:48:47 +0000 (15:48 +0100)
After issue 3187, considerably less trickery is needed for getting the
incipits to align with the main score.

Documentation/snippets/new/incipit.ly

index 09f50ff56e6d5169398400e6f5b7a0fa4a5dd1fc..3b85ef170cd384763180132e8d4208afcffd275d 100644 (file)
@@ -13,10 +13,7 @@ incipit =
 #(define-music-function (parser location incipit-music) (ly:music?)
   #{
     \once \override Staff.InstrumentName.self-alignment-X = #RIGHT
-    \once \override Staff.InstrumentName.self-alignment-Y = #UP
-    \once \override Staff.InstrumentName.Y-offset =
-      #(lambda (grob)
-         (+ 4 (system-start-text::calc-y-offset grob)))
+    \once \override Staff.InstrumentName.self-alignment-Y = ##f
     \once \override Staff.InstrumentName.padding = #0.3
     \once \override Staff.InstrumentName.stencil =
       #(lambda (grob)
@@ -27,7 +24,6 @@ incipit =
                         {
                           { \context MensuralStaff \with {
                                instrumentName = #instrument-name
-                               \override VerticalAxisGroup.Y-extent = #'(-4 . 4)
                             } $incipit-music
                           }
                           \layout { $(ly:grob-layout grob)