lilypond-user
[Top][All Lists]
Advanced

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

Re: Moving tuplet brackets


From: Lukas-Fabian Moser
Subject: Re: Moving tuplet brackets
Date: Tue, 28 Sep 2021 11:45:39 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0



In this case, I'm not sure what Harm did to ensure horizontal position of tuplet brackets. In the following solution, I'm doing a bit of a hack: I ask LilyPond to place the tuplet bracket outside everything else (that's the value of outside-staff-priority), and then I force them to be horizontal by letting LilyPond calculate the "usual" slope and afterwards forcing left and right y-position to the average value:

Oh, I'm sorry, I didn't realise that the outside-staff-priority overrides the manual setting of positions. Then of course it's much easier:

\version "2.22"

\relative {
  \tupletUp
  \override TupletBracket.bracket-visibility = ##t
  \override TupletBracket.outside-staff-priority = 2000
  \override TupletBracket.positions = #'(0 . 0)

  \tuplet 3/2 4 { b''8[(-> c) r] g[(-> fis) r] }
}

Lukas




reply via email to

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