Thursday, May 8, 2008

The last LilyPond tuplet bracket

Using tupletFullLength causes tuplet brackets to stretch just too far at the end of a piece. The solution is to use shorten-pair to manually shorten only the right end of the last bracket.



\new Staff {
\set Score.tupletFullLength = ##t
\times 2/3 { c'2 c'2 c'2 }
\times 2/3 { c'2 c'2 c'2 }
\once \override TupletBracket #'shorten-pair = #'(-0.2 . 1.2)
\times 2/3 { c'2 c'2 c'2 }
}

Here we set shorten-pair equal to #'(-0.2 . 1.2); the default is #'(-0.2 . -0.2).

No comments: