lilypond-user
[Top][All Lists]
Advanced

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

Re: Variables


From: Timothy Lanfear
Subject: Re: Variables
Date: Sun, 2 Jun 2019 18:57:33 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0


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.




reply via email to

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