On 12/04/2008, Alexander Kobel wrote:

>  I think there's another drawback of the snippet.
>  I had a very similar problem, trying to add marks like "Moderato (* =
>  63)", yet using rehearsal marks at the same time for sectioning the piece.
>  Problem is, Lily can't handle two RehearsalMark events on the same beat
>  (don't know whether there's a workaround), so I wanted to use
>  MetronomeMarks.

Sounds familiar. :-) I got around the simultaneous RehearsalMark
limitation by using invisible measures. My dirty trick is attached
below. This time it worked but there might be situations, when it
doesn't.

Your solution looks interesting, too. I must dig a bit deeper into it.

-Risto

%%%%%
\version "2.11.39"

\paper { ragged-right = ##t }
{
    \key a \major
    \set Score.markFormatter = #format-mark-box-letters

    \once \override Score.RehearsalMark #'outside-staff-priority = #5000
    \once \override Score.RehearsalMark #'self-alignment-X = #left
    \once \override Score.RehearsalMark #'extra-spacing-width =
#'(+inf.0 . -inf.0)
    \once \override Score.RehearsalMark #'break-align-symbols =
#'(key-signature)
    \mark \markup \bold "Senza denti"

    % the hidden bar
    \override Score.TimeSignature #'stencil = ##f
    \time 1/16
    s16 \bar ""
    \revert Score.TimeSignature #'stencil

    \time 4/4

    \once \override Score.RehearsalMark #'self-alignment-X = #left
    \once \override Score.RehearsalMark #'extra-spacing-width =
#'(+inf.0 . -inf.0)
    \once \override Score.RehearsalMark #'break-align-symbols = #'(bar-line)
    \mark \markup \box {\bold "Intro"}

    d'1 \mark \default d'
}
%%%%%

<<attachment: two_rehearsalmarks.png>>

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to