From: fred Date: Sun, 24 Mar 2002 19:50:57 +0000 (+0000) Subject: lilypond-0.1.7 X-Git-Tag: release/1.5.59~4283 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=64b582e797984696b53b001a412bbaed0bd8cc9d;p=lilypond.git lilypond-0.1.7 --- diff --git a/lib/duration-convert.cc b/lib/duration-convert.cc index 4a46bf9e64..b2a7195103 100644 --- a/lib/duration-convert.cc +++ b/lib/duration-convert.cc @@ -4,6 +4,7 @@ source file of the LilyPond music typesetter (c) 1997 Han-Wen Nienhuys + Jan Nieuwenhuizen */ #include #include "duration-convert.hh" @@ -115,9 +116,7 @@ Duration_convert::mom2standardised_dur( Moment mom ) // if ( !dur_array_s.length_i() ) if ( !dur_array_s.size() ) set_array(); -// assert( dur_array_s.length_i() ); assert( dur_array_s.size() ); -// for ( int i = 0; i < dur_array_s.length_i() - 1; i++ ) { for ( int i = 0; i < dur_array_s.size() - 1; i++ ) { Moment lower_mom = dur2_mom( dur_array_s[ i ] ); if ( mom <= lower_mom ) { @@ -125,22 +124,18 @@ Duration_convert::mom2standardised_dur( Moment mom ) // kinda ok if ( i || ( mom / lower_mom > Moment( 3, 4 ) ) ) return dur_array_s[ i ]; - else - return Duration( 0 ); + else { + Duration d; + d.type_i_ = 0; + return d; + } } Moment upper_mom = dur2_mom( dur_array_s[ i + 1 ] ); -#if 0 // % deviation of upper/lower from mom, perhaps it's better to use - if ( ( mom < upper_mom ) - && ( ( mom - lower_mom ) / mom - < ( upper_mom - mom ) / mom ) ) -#else // % deviation of mom from lower/upper? if ( ( mom < upper_mom ) && ( ( mom - lower_mom ) / lower_mom < ( upper_mom - mom ) / upper_mom ) ) -#endif return dur_array_s[ i ]; } -// return dur_array_s[ dur_array_s.length_i() ]; return dur_array_s[ dur_array_s.size() - 1 ]; } diff --git a/lily/meter-grav.cc b/lily/meter-grav.cc index 3112f18556..d65e5cfae2 100644 --- a/lily/meter-grav.cc +++ b/lily/meter-grav.cc @@ -100,7 +100,7 @@ void Meter_engraver::do_pre_move_processing() { if (meter_p_) { - typeset_breakable_item(meter_p_); + typeset_element(meter_p_); meter_p_ =0; meter_req_l_ = 0; }