2 spacing-options.cc -- implement Spacing_options
4 source file of the GNU LilyPond music typesetter
6 (c) 2006 Han-Wen Nienhuys <hanwen@lilypond.org>
10 #include "spacing-spanner.hh"
14 Spacing_options::init_from_grob (Grob *me)
16 increment_ = robust_scm2double (me->get_property ("spacing-increment"), 1);
18 packed_ = to_boolean (me->get_property ("packed-spacing"));
19 stretch_uniformly_ = to_boolean (me->get_property ("uniform-stretching"));
20 float_nonmusical_columns_
21 = to_boolean (me->get_property ("strict-note-spacing"));
23 = to_boolean (me->get_property ("strict-grace-spacing"));
24 shortest_duration_space_ = robust_scm2double (me->get_property ("shortest-duration-space"), 1);
27 Spacing_options::Spacing_options ()
31 stretch_uniformly_ = false;
32 float_nonmusical_columns_ = false;
33 float_grace_columns_ = false;
34 shortest_duration_space_ = 2.0;
36 global_shortest_ = Rational (1, 8);