lilypond-user
[Top][All Lists]
Advanced

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

Re: tupletNumberFormatFunction and nested tuplets


From: Han-Wen Nienhuys
Subject: Re: tupletNumberFormatFunction and nested tuplets
Date: Fri, 07 Jul 2006 12:52:26 +0200
User-agent: Thunderbird 1.5.0.4 (X11/20060614)

Trevor Bača schreef:
Hello,

Is there a way to set tupletNumberFormatFunction differently for
nested tuplets beginning at the same moment?

%%% BEGIN SNIPPET %%%

\version "2.9.10"

\new Staff {
  \time 4/8
  \once \set tupletNumberFormatFunction = #fraction-tuplet-formatter
  \times 4/3 {
     \once \set tupletNumberFormatFunction = #denominator-tuplet-formatter
     \times 2/3 {
        c'8[ c'8 c'8]
     }
     c'8
  }
}


%%% END SNIPPET %%%

What should happen here is that the outer tuplet number read "4:3"
while the inner tuplet number read simply "3".

Instead, the two different settings to tupletNumberFormatFunction seem
to "fight" for control (probably because they occur at the same
moment), with the lexically last of the two settings "winning". This
gives "3" together with "3", which is wrong; see attached.

(In other words, you can have "4:3" together with "3:2" OR you can
have "3" together with "3"; but you can not mix and match.)

Is there a way around this?

It might be possible  with

  \tweak ...stuff.. \times

unfortunately the internal mechanics of that changed recently, so I'm not sure if it still works.

--

Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com





reply via email to

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