Related question:
Is there a way to suppress the courtesy parens that happen when I'm putting
the text on the far side of the \break for a Horizontal Bracket?
[image: Screen Shot 2021-04-26 at 9.13.21 PM.png]


Michael

On Mon, Apr 19, 2021 at 6:32 PM Michael Blankenship <blanken...@gmail.com>
wrote:

> Brilliant, as usual. And removing the "not" creates the opposite effect,
> putting the text on the far side of the \break.
> ​Even works on Horizontal Brackets.
> ​
> ​Thanks Harm!
> ​
> ​
> ​
> ​
> ​
>
> On Apr 19 2021, at 6:05 pm, Thomas Morley <thomasmorle...@gmail.com>
> wrote:
>
>> Am Mo., 19. Apr. 2021 um 17:18 Uhr schrieb Michael Blankenship
>> <blanken...@gmail.com>:
>> >
>> > I'm wondering if anyone knows a way to stop the tuplet engraver from
>> reprinting the "number" (which in this case is really a string) when the
>> tuplet (which is really an analysis bracket) is split over a system break?
>> > It would very helpful to be able to use both horizontal brackets and
>> tuplet brackets with different formatting settings for parallel analysis.
>> > The tiny example of what I'm using now looks like this:gClass =
>> >
>> > #(define-music-function
>> >
>> >    (string note)
>> >
>> >    (string? ly:music?)
>> >
>> > #{
>> >
>> >     \tweak TupletNumber.text #string
>> >
>> >     \tuplet 1/1
>> >
>> >     #note
>> >
>> >     #})
>> >
>> > Anyone got any ideas? the ouput currently looks like this:
>> > Thanks!
>> > Michael
>>
>> Not sure I understood correctly, does below help?
>>
>> \version "2.23.2"
>>
>> {
>>   \override TupletNumber.after-line-breaking =
>>   #(lambda (grob)
>>      (if (not-first-broken-spanner? grob)
>>          (ly:grob-set-property! grob 'stencil '())))
>>
>>   \tuplet 1/1 {
>>       b1
>>       \break
>>       b
>>       b
>>   }
>> }
>>
>> Cheers,
>>   Harm
>>
>

Reply via email to