source file of the GNU LilyPond music typesetter
- (c) 2000--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ (c) 2000--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
Erik Sandberg <mandolaerik@gmail.com>
*/
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)
{