bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue 1150 in lilypond: RehearsalMark at start of line should not be


From: lilypond
Subject: Re: Issue 1150 in lilypond: RehearsalMark at start of line should not be printed above the clef
Date: Sun, 07 Aug 2011 13:08:59 +0000


Comment #8 on issue 1150 by address@hidden: RehearsalMark at start of line should not be printed above the clef
http://code.google.com/p/lilypond/issues/detail?id=1150

See also Neil's improved workaround, which places the RehearsalMark
after the key signature, and do not add a further shift to begin repeat
bar at begin of line.
Kind of perfect workaround!

\layout {
  \context {
    \Score
    \override RehearsalMark #'after-line-breaking =
    #(lambda (grob)
       (let* ((parent (ly:grob-parent grob X))
              (elts (ly:grob-array->list (ly:grob-object parent 'elements)))
              (symbols (filter identity (map (lambda (elt)
                                               (ly:grob-property elt
'break-align-symbol #f))
                                             elts))))
         (and (= (ly:item-break-dir grob) RIGHT)
              (not (memq 'staff-bar symbols))
              (ly:grob-translate-axis! grob (interval-length
(ly:grob-extent parent parent X)) X))
         (ly:side-position-interface::move-to-extremal-staff grob)))
  }
}

http://lists.gnu.org/archive/html/lilypond-user/2011-08/msg00131.html




reply via email to

[Prev in Thread] Current Thread [Next in Thread]