lilypond-user
[Top][All Lists]
Advanced

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

Re: multiple marks


From: Simon Albrecht
Subject: Re: multiple marks
Date: Mon, 12 May 2014 22:58:46 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

Am 12.05.2014 14:11, schrieb Carlo Vanoni:
Hi everyone,

I'm using this nice function to add a right-aligned text that states the number of repeats of a repeat block:
repeatMark =
#(define-music-function
     (parser location volte visible)
     (number? boolean?)
     (if visible
   #{
     \once \override Score.RehearsalMark #'break-visibility =
     #begin-of-line-invisible
     \once \override Score.RehearsalMark #'self-alignment-X = #RIGHT
     \once \override Score.RehearsalMark #'font-size = #0
     \mark \markup $(string-join (list "repeat" (number->string volte)
     "times"))
   #}
   #{ #}
   ))

It is called with this code at the end of a section
\repeatMark #4 ##t    % writes "repeat 4 times"

I usually wrote section name using a markup on single notes (a1^\markup{ \bold Intro}). Now I'm separating the various song sections in different variables. Since the same section can be used, e.g., as a chorus and during the solo, I need to write the section name using a \mark before the section in the main score. This unfortunately generates a "multiple mark" error when repeats are involved.
The following might help you: http://lists.gnu.org/archive/html/lilypond-user/2011-08/msg00157.html
It defines a multi-mark-engraver, which allows to have more than one mark at the same point of time.

HTH, Simon

reply via email to

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