]> git.donarmstrong.com Git - lilypond.git/commit
Show TupletBrackets also on single notes
authorReinhold Kainhofer <reinhold@kainhofer.com>
Mon, 25 Feb 2008 17:32:46 +0000 (18:32 +0100)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Wed, 27 Feb 2008 14:59:52 +0000 (15:59 +0100)
commit6ea234295056cc74e1a813271bf6f748973c4306
tree4d28cab5b402607562fd014f03c442ca9469fbc4
parent07084dd273925f1397daa9f9f43b8481fa49d7bb
Show TupletBrackets also on single notes

While tuplet brackets should not be printed for tuplets consisting
of only one note (e.g. a note with tremolo!), the tuplet number still
needs to be printed and can not be ignored.

Since the tuplet number also uses the dimensions calculated by the tuplet
bracket, the tuplet bracket at least needs to calculate it's theoretical
size, too, even though it will not be printed for single-note tuplets. The
check to kill zero-length tuplet brackets has thus been moved from
calc_positions to print in Tuplet_bracket.

Signed-off-by: Reinhold Kainhofer <reinhold@kainhofer.com>
lily/tuplet-bracket.cc
lily/tuplet-number.cc