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
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user