|
From: | Lukas-Fabian Moser |
Subject: | Re: balloonText and DoublePercentEngraver |
Date: | Tue, 21 Dec 2021 23:28:11 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 |
Hi Werner, Am 21.12.21 um 23:07 schrieb Werner LEMBERG:
Please have a look at the following example. ``` \new Score \with { \consists "Balloon_engraver" } \new Staff { \repeat "percent" 2 { e'4 e' e' e' | \balloonGrobText #'PercentRepeat #'(0 . 1) \markup "Repeat" } \repeat "percent" 2 { e'2 e' | e' e' | \balloonGrobText #'DoublePercentRepeat #'(0 . 1) \markup "DoubleRepeat" } } ``` This shows a balloon help for `PercentRepeat` but not for `DoublePercentRepeat`. What am I doing wrong?
It seems that the correct time offset for the DoublePercentRepeat is at the beginning of the _second_ of the two bars.
This can be conventiently handled with \after - and also note that some of your # and ' and " characters are not necessary anymore:
\version "2.23" \new Score \with { \consists "Balloon_engraver" } \new Staff { \repeat percent 2 { e'4 e' e' e' | \balloonGrobText PercentRepeat #'(0 . 1) Repeat } \after 1*3 \balloonGrobText DoublePercentRepeat #'(0 . 1) DoubleRepeat \repeat percent 2 { e'2 e' | e' e' | } }(One might even write 0/1 instead of #'(0 . 1), but I admit that this is a nasty abuse of LilyPond's syntax conventions.)
Lukas
[Prev in Thread] | Current Thread | [Next in Thread] |