[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tuplet spanner length bug in v.2.13?
From: |
Kieren MacMillan |
Subject: |
Re: Tuplet spanner length bug in v.2.13? |
Date: |
Sat, 24 Oct 2009 09:39:34 -0400 |
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.