Dear Kieren,
Thanks for the crash course in tweaking. As far as I understand, one has to "manually" output the desired text in the bracket. This seems incredibly laborious, especially for those that, as me, only write tuplets, and with several nesting levels. Is is possible to turn tupletExample into a function that takes as arguments the rhythmic value one wants to output which it calculates from the information in the tuplet? For instance, I remade your last snippet like this:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.11.49"

tupletExample = \markup
{
        \line
        {
"5" \translate #'(-0.2 . 0) \fontsize #-4 \general-align #Y #DOWN \note #"8" #1
                :
"3" \translate #'(-0.2 . 0) \fontsize #-4 \general-align #Y #DOWN \note #"16" #1
        }
}


\relative
{

         \override TupletNumber #'stencil = #ly:text-interface::print
        \override TupletNumber #'text = \tupletExample
         \override TupletNumber #'Y-offset = #3

        \times 4/5 { c8 c c c c}
        \times 4/5 { c4*1/2 c c c c }
}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Would it be possible to make a generic function that works for the tuplet in red and also in green?

thanks a lot,
greetings
uri
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to