Hi Richard,

It seems to me that \set tupletSpannerDuration fails to affect tuplets that are in a << \\ >> construct.

Only if you don't code it right...  ;)

music =
{
    <<
    % This fails to create the right tuplet-spanners.
\set tupletSpannerDuration = #(ly:make-moment 1 8) % indicates that there's a triplet group every quaver
    \relative c' \times 2/3 { e16 e e e e e e e e e e e }
    \\
    c'2
    >>
} % music

You need to put the \set and the tuplets in the same Voice context:

music =
{
    <<
    % This fails to create the right tuplet-spanners.
{ \set tupletSpannerDuration = #(ly:make-moment 1 8) % indicates that there's a triplet group every quaver
    \relative c' \times 2/3 { e16 e e e e e e e e e e e }
    }
    \\
    c'2
    >>
} % music

Note the new braces!!
This ensures that the \set and the tuplets are in the same Voice context, so Lily works as expected.

Hope this helps!
Kieren.


_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to