]> git.donarmstrong.com Git - lilypond.git/commitdiff
Simplify syntax constructor for \mark.
authorNeil Puttock <n.puttock@gmail.com>
Sun, 7 Aug 2011 16:36:55 +0000 (17:36 +0100)
committerNeil Puttock <n.puttock@gmail.com>
Sun, 7 Aug 2011 17:02:24 +0000 (18:02 +0100)
* scm/ly-syntax-constructors.scm (make-mark-set):

  don't wrap MarkEvent in EventChord since this prevents application of
  \tweak when \mark is used with markup

  set 'origin when creating MarkEvent

scm/ly-syntax-constructors.scm

index 171cee12407e8bbb2ebf1f0c87b25d3ed3e0ce3f..5633ad84a140a389d507c5a670a51ae76f6438d0 100644 (file)
@@ -243,15 +243,14 @@ into a @code{MultiMeasureTextEvent}."
   (let* ((set (and (integer? label)
                   (context-spec-music (make-property-set 'rehearsalMark label)
                                      'Score)))
-        (ev (make-music 'MarkEvent))
-        (ch (make-event-chord (list ev))))
+        (ev (make-music 'MarkEvent
+                        'origin location)))
 
-    (set! (ly:music-property ev 'origin) location)
     (if set
-       (make-sequential-music (list set ch))
+       (make-sequential-music (list set ev))
        (begin
          (set! (ly:music-property ev 'label) label)
-         ch))))
+         ev))))
 
 (define-ly-syntax (partial parser location dur)
   "Make a partial measure."