/*
spacing-basic.cc -- implement Spacing_spanner, simplistic spacing routines
-
+
source file of the GNU LilyPond music typesetter
(c) 2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
-
*/
#include "spacing-spanner.hh"
#include "warn.hh"
/*
- LilyPond spaces by taking a simple-minded spacing algorithm, and
- adding subtle adjustments to that. This file does the simple-minded
- spacing routines.
+ LilyPond spaces by taking a simple-minded spacing algorithm, and
+ adding subtle adjustments to that. This file does the simple-minded
+ spacing routines.
*/
-
/*
- Get the measure wide ant for arithmetic spacing.
+ Get the measure wide ant for arithmetic spacing.
*/
Real
Spacing_options::get_duration_space (Moment d,
}
}
-
/*
The one-size-fits all spacing. It doesn't take into account
different spacing wishes from one to the next column.
Real
Spacing_spanner::note_spacing (Grob *me, Grob *lc, Grob *rc,
- Spacing_options const *options ,
+ Spacing_options const *options,
bool *expand_only)
{
Moment shortest_playing_len = 0;
if (delta_t.main_part_ && !lwhen.grace_part_)
{
dist = options->get_duration_space (shortest_playing_len,
- expand_only);
+ expand_only);
dist *= double (delta_t.main_part_ / shortest_playing_len.main_part_);
}
else if (delta_t.grace_part_)
return dist;
}
-
/****************************************************************/
void
shortest_duration_space_ = robust_scm2double (me->get_property ("shortest-duration-space"), 1);
}
-
void
Spacing_options::init ()
{
float_nonmusical_columns_ = false;
shortest_duration_space_ = 2.0;
- global_shortest_ = Rational (1,8);
+ global_shortest_ = Rational (1, 8);
}