dy for scaling. This fixes various downbeams.
* lily/beam-quanting.cc (best_quant_score_idx):
+2004-09-22 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * lily/beam-concave.cc (calc_concaveness): take absolute value of
+ dy for scaling. This fixes various downbeams.
+
+
+ * lily/beam-quanting.cc (best_quant_score_idx):
+
2004-09-22 Jan Nieuwenhuizen <janneke@gnu.org>
* scm/framework-tex.scm (header-to-file): Fix.
scaling of concaveness doesn't matter much.
*/
if (dy)
- concaveness /= dy;
+ concaveness /= fabs (dy);
return concaveness;
}
*/
-int best_quant_score_idx (Array<Quant_score> const & qscores)
+int
+best_quant_score_idx (Array<Quant_score> const & qscores)
{
Real best = 1e6;
int best_idx = -1;
}
}
+ if (best_idx < 0)
+ {
+ programming_error ("Huh? No best beam quant score?");
+ best_idx = 0;
+ }
+
+
return best_idx;
}
int best_idx = best_quant_score_idx (qscores);
-
#if DEBUG_QUANTING
SCM inspect_quants = me->get_property ("inspect-quants");
if (to_boolean (me->get_paper ()->lookup_variable (ly_symbol2scm ("debug-beam-quanting")))