From: Graham Percival Date: Thu, 15 Mar 2007 00:54:23 +0000 (-0700) Subject: Update from mailist. X-Git-Tag: release/2.11.21-1~4^2~5 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ece94bbb6842398bc6e4aefec26413e376f74bb4;p=lilypond.git Update from mailist. --- diff --git a/Documentation/user/basic-notation.itely b/Documentation/user/basic-notation.itely index 6f5c35ab5c..49d7b7e41c 100644 --- a/Documentation/user/basic-notation.itely +++ b/Documentation/user/basic-notation.itely @@ -762,6 +762,49 @@ To avoid printing tuplet numbers, use \times 2/3 { c8 c c } \times 2/3 { c8 c c } @end lilypond +Use the @code{\tweak} function to override nested tuplets beginning at the +same music moment. In this example, @code{\tweak} specifies fraction +text for the +outer @code{TupletNumber} and denominator text for the @code{TupletNumber} +of the first of the three inner tuplets. + +@lilypond[quote,ragged-right,verbatim] +\new Staff { + \tweak #'text #tuplet-number::calc-fraction-text + \times 4/3 { + \tweak #'text #tuplet-number::calc-denominator-text + \times 2/3 { c'8[ c'8 c'8] } + \times 2/3 { c'8[ c'8 c'8] } + \times 2/3 { c'8[ c'8 c'8] } + } +} +@end lilypond + +Here @code{\tweak} and @code{\override} work together to specify +@code{TupletBracket} direction. The first @code{\tweak} positions +the @code{TupletBracket} of the outer +tuplet above the staff. The second @code{\tweak} positions the +@code{TupletBracket} of the first of the three inner tuplets below the +staff. Note that this pair of @code{\tweak} functions affects only +the outer tuplet and the first of the three inner tuplets because only +those two tuplets begin at the same music moment. We use @code{\override} +in the usual way to position the @code{TupletBrackets} of +the second and third of the inner tuplets below the staff. + +@lilypond[quote,ragged-right,verbatim] +\new Staff { + \tweak #'text #tuplet-number::calc-fraction-text + \tweak #'direction #up + \times 4/3 { + \tweak #'direction #down + \times 2/3 { c'8[ c'8 c'8] } + \override TupletBracket #'direction = #down + \times 2/3 { c'8[ c'8 c'8] } + \times 2/3 { c'8[ c'8 c'8] } + } +} +@end lilypond + Tuplet brackets can be made to run to prefatory matter or the next note