]> git.donarmstrong.com Git - lilypond.git/commit
Show TupletNumbers also on single-note tuplets (e.g. with tremolo)
authorReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 8 Mar 2008 23:07:57 +0000 (00:07 +0100)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 8 Mar 2008 23:07:57 +0000 (00:07 +0100)
commit3cbf6c54f49b0a36c4819528dbbb836a5d0455c6
tree4fd75dae675f15f95b35ad14f6a25ebbf00c7035
parentcc58c137e041142c91019b30790d9fe61a5fedbc
Show TupletNumbers also on single-note tuplets (e.g. with tremolo)

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. Otherwise the timing would
look messed up.

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.

In the print function we mustn't kill the bracket (which
will also kill the number), but only hide the bracket.

Also added a test case.
input/regression/tuplet-single-note.ly [new file with mode: 0644]
lily/tuplet-bracket.cc
lily/tuplet-number.cc