[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Supress cross-system tuplet courtesy text?
From: |
Thomas Morley |
Subject: |
Re: Supress cross-system tuplet courtesy text? |
Date: |
Tue, 20 Apr 2021 00:05:42 +0200 |
Am Mo., 19. Apr. 2021 um 17:18 Uhr schrieb Michael Blankenship
<blankens10@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