{
Moment shortest;
Moment mean_shortest;
+
+ /*
+ space as if this duration is present.
+ */
+ Moment base_shortest_duration = *unsmob_moment (me->get_elt_property ("maximum-duration-for-spacing"));
shortest.set_infinite (1);
int n = 0;
// 2nd condition should be (i+1 < col_count()), ie. not the last column in score. FIXME
else if (!lc->musical_b() && i+1 < cols.size ())
{
- left_distance= default_bar_spacing (me,lc,rc,shortest);
+ left_distance= default_bar_spacing (me,lc,rc,shortest <? base_shortest_duration);
}
else if (lc->musical_b())
{
- left_distance = note_spacing (me,lc, rc, shortest);
+ left_distance = note_spacing (me,lc, rc, shortest <? base_shortest_duration);
}
s.distance_f_ = left_distance;
Real
Spacing_spanner::get_duration_space (Score_element*me, Moment d, Moment shortest)
{
- Real log = log_2 (Moment (1,8) <? shortest);
+ Real log = log_2 (shortest);
Real k= me->paper_l ()->get_var ("arithmetic_basicspace")
- log;
Real
-Spacing_spanner::note_spacing (Score_element*me, Score_element *lc, Score_element *rc, Moment shortest)
+Spacing_spanner::note_spacing (Score_element*me, Score_element *lc, Score_element *rc,
+ Moment shortest)
{
Moment shortest_playing_len = 0;
SCM s = lc->get_elt_property ("shortest-playing-duration");