The solution was to build the tuplet number text as a markup.
I wonder if there is a way to specify the alignment of the tuplet
number with the tuplet bracket instead of specifying paddings and
offsets as I did. Anyway this works well visually:

\version "2.25.5"

\new Staff
{
  \relative c'
  \repeat unfold 5 {
    \override TupletBracket.outside-staff-priority = #0
    \override TupletBracket.bracket-visibility = ##t
    \tuplet 5/4 { \override TupletNumber.text = \markup {  \combine
"5:4"   \combine \magnify #0.5 \translate-scaled #'(5 . 0) \rhythm { {
8 } } \translate-scaled #'(3.3 . 2.8) \magnify #0.5 "5"  } \override
TupletBracket.padding = #0 \override TupletNumber.Y-offset = #1.5
\tuplet 5/4 {  c8[ c c c c]  } }
  }
}


On Tue, 25 Jul 2023 at 16:34, Lib Lists <lists...@gmail.com> wrote:
>
> Hello,
> I'm testing different ways to notate the top-staff rhythm in the
> example below (a 25:16 tuplet over two bars, or a quintuplet built on
> four notes of another quintuplet). I have a couple of problems:
>
> 1. I'd like to notate the first staff ratio as in the attached image,
> but I have no idea how to add a small '5' on top of the eight note.
> 2. As soon as I add manual beams [ ] in the first staff, the tuplet
> number and bracket goes inside the staff, despite the \override
> TupletBracket.outside-staff-priorit
>
> Any help is really appreciated!
> Lib
>
> \version "2.25.5"
>
>   <<
>     \new Staff
>     {
>       \relative c'
>       \repeat unfold 5 {
>         \override TupletBracket.outside-staff-priority = #0
>         \override TupletNumber.text =
>         #(tuplet-number::non-default-fraction-with-notes
>           5 (ly:make-duration 3 0) 4 (ly:make-duration 3 0))
>         \tuplet 5/4 { \tuplet 5/4 {  c8[ c c c c]  } }
>       }
>     }
>     \new Staff
>     {
>       \relative c'
>       \repeat unfold 4 {
>         \tuplet 5/4 { c8 c c c c }
>       }
>     }
>   >>

Reply via email to