lilypond-user
[Top][All Lists]
Advanced

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

Re: quoted tuplet bracket within staff


From: Lukas-Fabian Moser
Subject: Re: quoted tuplet bracket within staff
Date: Fri, 26 Nov 2021 16:07:32 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0

Hi Kieren & Werner,

There's surely a more elegant way… but if you're stuck, you can always hack it:

x = { r2 \tuplet 3/2 { g4 a b } }

  \addQuote "qx" \x

  {
   r2 \cueDuring #"qx" #DOWN {
   \override CueVoice.TupletBracket.direction = #DOWN
   \override CueVoice.TupletBracket.edge-height = #'(-0.7 . -0.7)
   \override CueVoice.TupletBracket.extra-offset = #'(0 . 4.75)
   \override CueVoice.TupletNumber.extra-offset = #'(0 . 4.75)
   r2
   }
  }

Hold the heavy machinery :-). You can just set the positions directly:

\version "2.23.4"

x = { r2 \tuplet 3/2 { g4 a b } }

\addQuote "qx" \x

{
  r2 \cueDuring #"qx" #DOWN {
    \override CueVoice.TupletBracket.positions = #'(-2 . -1)
    \override CueVoice.TupletBracket.direction = #UP
    r2
  }
}

For a general solution, one could probably write a callback for the positions property. How difficult this is probably depends on the use case: Werner, how similar are the instances in your score? Can we assume a monotonous sequence of pitches? May we assume that the bracket should always be above?

Lukas




reply via email to

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