lilypond-user
[Top][All Lists]
Advanced

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

Re: different rhythmic units for tuplet's numerator and denominator


From: Uri Sala
Subject: Re: different rhythmic units for tuplet's numerator and denominator
Date: Tue, 8 Jul 2008 00:40:17 +0200

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

reply via email to

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