X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fchord-tremolo-iterator.cc;h=c5371a2c4d2c875a8bf907b190e39e25c56a0376;hb=840936be1b28526ef292b5dae8ae031b4fa587f9;hp=05e56e24a52f6b8d34919afdccbbcb1474f13f2f;hpb=a276a19dc6bd57832db3107f2f2cbb04cb4677b6;p=lilypond.git diff --git a/lily/chord-tremolo-iterator.cc b/lily/chord-tremolo-iterator.cc index 05e56e24a5..c5371a2c4d 100644 --- a/lily/chord-tremolo-iterator.cc +++ b/lily/chord-tremolo-iterator.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 2000--2007 Han-Wen Nienhuys + (c) 2000--2009 Han-Wen Nienhuys Erik Sandberg */ @@ -41,7 +41,7 @@ Chord_tremolo_iterator::get_music_list () const Rational note_dur = total_dur / Rational (elt_count * Repeated_music::repeat_count (mus)); SCM tremolo_type = scm_int2num (note_dur.den ()); - int expected_beaming_ = max (0, (intlog2 (total_dur.den ()) - 2)); + int expected_beaming_ = max (0, (intlog2 (total_dur.den ()) - intlog2 (total_dur.num () + 1) - 1)); if (elt_count == 1) {