lilypond-auto
[Top][All Lists]
Advanced

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

Re: [Lilypond-auto] Issue 1150 in lilypond: RehearsalMark at start of li


From: lilypond
Subject: Re: [Lilypond-auto] Issue 1150 in lilypond: RehearsalMark at start of line should be printed over an imaginary bar line
Date: Fri, 26 Apr 2013 05:32:20 +0000

Updates:
Summary: RehearsalMark at start of line should be printed over an imaginary bar line
        Labels: -Priority-Low

Comment #13 on issue 1150 by address@hidden: RehearsalMark at start of line should be printed over an imaginary bar line
http://code.google.com/p/lilypond/issues/detail?id=1150

By default, the rehearsal marks are placed over the right edge of the key-signature. The workaround in comment 8 assumed that the default was the extreme left, so it needs to be amended:
    \override Score.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 1.0 X))
        (ly:side-position-interface::move-to-extremal-staff grob)))
but now this moves the mark only 1.0 staff-spaces to the right. (The starting point comes from the documented for break-alignable-interface, so use that if you want the mark to go to the right of a time-signature as well.)

LilyPond does not seem to compute the position for "where the bar-line would go" but the documentation implies that it does, to position the mark "if no objects in the list are visible" <http://lilypond.org/doc/v2.17/Documentation/notation/aligning-objects#using-the-break_002dalignable_002dinterface>

Also, a regression test 'input/regression/prefatory-empty-spacing.ly' says:
  "The [rehearsal mark at begin-of-line] A is atop an invisible barline.
The barline, although invisible, is also translated because it is the last one
of the break alignment."

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings



reply via email to

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