[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    tupletNumberFormatFunction and nested tuplets
From:       "=?UTF-8?Q?Trevor_Ba=C4=8Da?=" <trevorbaca () gmail ! com>
Date:       2006-06-29 14:00:40
Message-ID: d21bce00606290700p741e633dt41bc449eb9cdc7a1 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (text/plain)]

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?



-- 
Trevor Bača
trevorbaca@gmail.com

["nested-formatting.png" (image/png)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic