lilypond-user
[Top][All Lists]
Advanced

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

Re: Supress cross-system tuplet courtesy text?


From: Michael Blankenship
Subject: Re: Supress cross-system tuplet courtesy text?
Date: Mon, 19 Apr 2021 18:32:16 -0400

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 <thomasmorley65@gmail.com> wrote:
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

reply via email to

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