2 slur-score-paramaters.cc -- implement Slur_score_parameters
4 source file of the GNU LilyPond music typesetter
6 (c) 2006--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
11 #include "slur-score-parameters.hh"
16 get_detail (SCM alist
, SCM sym
)
18 SCM entry
= scm_assq (sym
, alist
);
19 return robust_scm2double (scm_is_pair (entry
)
26 Slur_score_parameters::fill (Grob
*me
)
28 SCM details
= me
->get_property ("details");
31 = (int) get_detail (details
, ly_symbol2scm ("region-size"));
32 head_encompass_penalty_
33 = get_detail (details
, ly_symbol2scm ("head-encompass-penalty"));
34 stem_encompass_penalty_
35 = get_detail (details
, ly_symbol2scm ("stem-encompass-penalty"));
37 = get_detail (details
, ly_symbol2scm ("closeness-factor"));
38 edge_attraction_factor_
39 = get_detail (details
, ly_symbol2scm ("edge-attraction-factor"));
41 = get_detail (details
, ly_symbol2scm ("same-slope-penalty"));
43 = get_detail (details
, ly_symbol2scm ("steeper-slope-factor"));
44 non_horizontal_penalty_
45 = get_detail (details
, ly_symbol2scm ("non-horizontal-penalty"));
47 = get_detail (details
, ly_symbol2scm ("max-slope"));
49 = get_detail (details
, ly_symbol2scm ("max-slope-factor"));
51 = get_detail (details
, ly_symbol2scm ("free-head-distance"));
52 absolute_closeness_measure_
53 = get_detail (details
, ly_symbol2scm ("absolute-closeness-measure"));
54 extra_object_collision_penalty_
55 = get_detail (details
, ly_symbol2scm ("extra-object-collision-penalty"));
57 = get_detail (details
, ly_symbol2scm ("accidental-collision"));
58 extra_encompass_free_distance_
59 = get_detail (details
, ly_symbol2scm ("extra-encompass-free-distance"));
60 extra_encompass_collision_distance_
61 = get_detail (details
, ly_symbol2scm ("extra-encompass-collision-distance"));
62 head_slur_distance_factor_
63 = get_detail (details
, ly_symbol2scm ("head-slur-distance-factor"));
64 head_slur_distance_max_ratio_
65 = get_detail (details
, ly_symbol2scm ("head-slur-distance-max-ratio"));
67 = get_detail (details
, ly_symbol2scm ("free-slur-distance"));
69 = get_detail (details
, ly_symbol2scm ("edge-slope-exponent"));