lilypond-devel
[Top][All Lists]

## Re: Feature request: break-align-symbols property for MetronomeMark

 From: Kieren MacMillan Subject: Re: Feature request: break-align-symbols property for MetronomeMark Date: Sun, 14 Sep 2008 17:30:22 -0400

Hi Neil,

The alignment's good when there's a time signature present, but the
stumbling block is how to align to note columns; I can't work out how
the metronome marks get attached to a paper column when there's no
breakable object nearby. :(

For the record, this is also a problem with RehearsalMark:

%%%%%%%%%%%%%%%%%%%%%%
\version "2.11.57"

\layout
{
\context
{
\Score
\override RehearsalMark #'break-align-symbols =
#'(time-signature)
\override RehearsalMark #'self-alignment-X = #left
}
}

twoMarks = \relative
{
\time 4/4 \mark "This mark is aligned (correctly) to the time signature." c'2 c4 c \break \mark "This one is aligned (undesirably) to the left of the system." c2 c4 c
}

\score
{
\twoMarks
}
%%%%%%%%%%%%%%%%%%%%%%

It would be nice if the second-system RehearsalMark aligned with the first note of the measure, as per Read's description.

Can you calculate the appropriate value(s) from the BarLine #'space- alist, then attach the Metronome/Rehearsal Mark to the bar line (invisible or not), and pad it from there? I mean, clearly Lilypond knows where to put the first note of the measure, so it should be determinable from the values of the #'space-alist, no?

Cheers,
Kieren.