Re: quoted tuplet bracket within staff

2021-11-26 Thread David Kastrup
Kieren MacMillan writes: > Hi David, > >> I admit that I went for another dive into the IR for TupletBracket when >> outside-staff-priority failed to do the trick. Turns out that >> outside-staff-interface should be #f by default anyway? > > Please elaborate: > You believe the default is

Re: quoted tuplet bracket within staff

2021-11-26 Thread Jean Abou Samra
Le 26/11/2021 à 16:19, Lukas-Fabian Moser a écrit : I never really understood the outside-staff behaviour, to be honest. If it seems complicated, that's because it is. There are two mechanisms for general collision avoidance, incarnated in the side-position-interface and the

Re: quoted tuplet bracket within staff

2021-11-26 Thread Kieren MacMillan
Hi David, > I admit that I went for another dive into the IR for TupletBracket when > outside-staff-priority failed to do the trick. Turns out that > outside-staff-interface should be #f by default anyway? Please elaborate: You believe the default is incorrect (in which case I will work up a

Re: quoted tuplet bracket within staff

2021-11-26 Thread David Kastrup
Kieren MacMillan writes: > Hi all, > >>> I never really understood the outside-staff behaviour, to be >>> honest. It's well possible that there's an elegant solution that just >>> tells LilyPond to go ahead and put the tuplet bracket into the staff. >> Uh, that's what setting

Re: quoted tuplet bracket within staff

2021-11-26 Thread Werner LEMBERG
>> Well, you got the wrong property here. outside-staff-priority >> tells how to stack outside-staff objects with one another. What >> you need here is >> >> \override CueVoice.TupletBracket.staff-padding = ##f Aah, I only tried `padding` to no avail. Thanks a lot! > So, Werner, this

Re: quoted tuplet bracket within staff

2021-11-26 Thread Kieren MacMillan
Hi all, >> I never really understood the outside-staff behaviour, to be >> honest. It's well possible that there's an elegant solution that just >> tells LilyPond to go ahead and put the tuplet bracket into the staff. > Uh, that's what setting outside-staff-priority to #f does. Uh, that was the

Re: quoted tuplet bracket within staff

2021-11-26 Thread Lukas-Fabian Moser
Well, you got the wrong property here. outside-staff-priority tells how to stack outside-staff objects with one another. What you need here is \override CueVoice.TupletBracket.staff-padding = ##f to stop TupletBracket from being shy of the staff itself, never mind other outside-staff

Re: quoted tuplet bracket within staff

2021-11-26 Thread David Kastrup
Lukas-Fabian Moser writes: >>> I never really understood the outside-staff behaviour, to be >>> honest. It's well possible that there's an elegant solution that just >>> tells LilyPond to go ahead and put the tuplet bracket into the staff. >> Uh, that's what setting outside-staff-priority to #f

Re: quoted tuplet bracket within staff

2021-11-26 Thread David Kastrup
Lukas-Fabian Moser writes: >>> For a general solution, one could probably write a callback for the >> positions property. >> I was hoping to use #'outside-staff-priority to try to allow the >> tuplet to float into the staff automatically, but gave up after a >> few minutes of not finding the

Re: quoted tuplet bracket within staff

2021-11-26 Thread Lukas-Fabian Moser
I never really understood the outside-staff behaviour, to be honest. It's well possible that there's an elegant solution that just tells LilyPond to go ahead and put the tuplet bracket into the staff. Uh, that's what setting outside-staff-priority to #f does. Did I mention I never really

Re: quoted tuplet bracket within staff

2021-11-26 Thread Werner LEMBERG
>> For a general solution, one could probably write a callback for the >> positions property. > > I was hoping to use #'outside-staff-priority to try to allow the > tuplet to float into the staff automatically, [...] Me too. Werner

Re: quoted tuplet bracket within staff

2021-11-26 Thread Werner LEMBERG
>>\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) > > Hold the heavy machinery :-). You

Re: quoted tuplet bracket within staff

2021-11-26 Thread Lukas-Fabian Moser
For a general solution, one could probably write a callback for the positions property. I was hoping to use #'outside-staff-priority to try to allow the tuplet to float into the staff automatically, but gave up after a few minutes of not finding the right incantation… I never really

Re: quoted tuplet bracket within staff

2021-11-26 Thread Kieren MacMillan
Hi Lukas, > Hold the heavy machinery :-) LOL > You can just set the positions directly: Nice. > For a general solution, one could probably write a callback for the positions > property. I was hoping to use #'outside-staff-priority to try to allow the tuplet to float into the staff

Re: quoted tuplet bracket within staff

2021-11-26 Thread Lukas-Fabian Moser
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 =

Re: quoted tuplet bracket within staff

2021-11-26 Thread Werner LEMBERG
>> What must I do to make the tuplet bracket be positioned within the >> staff, that is, below the rest? > > There's surely a more elegant way… but if you're stuck, you can > always hack it: [...] Thanks a lot! Of course I would like to have a solution that avoids `extra-offset` :-) > x = {

Re: quoted tuplet bracket within staff

2021-11-26 Thread Kieren MacMillan
Hi Werner, > What must I do to make the tuplet bracket be positioned > within the staff, that is, below the rest? 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