On 22/09/2025 23:58, Paul Hodges wrote:
I have been using a little function to provide non-standard tuplet numbers on following tuplets until a \revert:

tupletMinim = \override TupletNumber.text =
    #(tuplet-number::append-note-wrapper
tuplet-number::calc-denominator-text
      (ly:make-duration 1 0))

This produces a number followed by a minim symbol (I also have a crotchet version).

I have now been asked to include a colon between the number and the note (and no other change), but I can't work out how to add it to the function above.

Any suggestions?

Paul

Does this do what you need?

\version "2.24.4"

#(define (with-colon grob)
  (string-join (list (tuplet-number::calc-denominator-text grob) ":")))

tupletMinim = \override TupletNumber.text =
    #(tuplet-number::append-note-wrapper
      with-colon
      (ly:make-duration 1 0))

{
  \tupletMinim \tuplet 3/2 { c''4 4 4 }
}

--
Timothy Lanfear, Bristol, UK.

Reply via email to