On 02/06/2019 14:36, Euler wrote:
Hello,

I'm looking for a way to get some markup in variables.
in parts i would like to get the markup printed, but only once in scores.

here is attached an example in score mode where i would like "Menuetto da
Capo" printed only in the lower voice.
<http://lilypond.1069038.n5.nabble.com/file/t1823/Capture.png>

Use a mark in this situation, which is printed only once in a score

http://lilypond.org/doc/v2.19/Documentation/notation/writing-text#index-marks_002c-text

\version "2.19.83"

dacapo =
#(define-music-function (dc) (string?)
#{
  \once \override Score.RehearsalMark.break-visibility = #end-of-line-visible
  \once \override Score.RehearsalMark.self-alignment-X = #RIGHT
  \once \override Score.RehearsalMark.direction = #DOWN
  \once \override Score.RehearsalMark.Y-offset = -6
  \mark \markup \italic #dc
#}
)

<<
  \new Staff { \time 3/4 R2.*3 \appoggiatura e''4 d''2 r4\dacapo "Menuetto da capo" }
  \new Staff { \time 3/4 R2.*3 d'2 r4\dacapo "Menuetto da capo" }
>>


--
Timothy Lanfear, Bristol, UK.


_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to