X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fslur-score-parameters.cc;h=6a0768e73029b107e2ddbed5ca662bd886213594;hb=3ea291c21ce16aeaf00b6a6f500bf0a3a9b790d9;hp=85cd0e7b1059559af7e5e2dcfaaa3958d351bc23;hpb=b7a0cffbf9d1069860368f289a5b50e9d1d90ba8;p=lilypond.git diff --git a/lily/slur-score-parameters.cc b/lily/slur-score-parameters.cc index 85cd0e7b10..6a0768e730 100644 --- a/lily/slur-score-parameters.cc +++ b/lily/slur-score-parameters.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2006--2009 Han-Wen Nienhuys + Copyright (C) 2006--2012 Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify @@ -18,19 +18,17 @@ along with LilyPond. If not, see . */ - #include "slur-score-parameters.hh" #include "grob.hh" - Real get_detail (SCM alist, SCM sym) { SCM entry = scm_assq (sym, alist); return robust_scm2double (scm_is_pair (entry) - ? scm_cdr (entry) - : SCM_EOL, - 0.0); + ? scm_cdr (entry) + : SCM_EOL, + 0.0); } void @@ -44,8 +42,6 @@ Slur_score_parameters::fill (Grob *me) = get_detail (details, ly_symbol2scm ("head-encompass-penalty")); stem_encompass_penalty_ = get_detail (details, ly_symbol2scm ("stem-encompass-penalty")); - closeness_factor_ - = get_detail (details, ly_symbol2scm ("closeness-factor")); edge_attraction_factor_ = get_detail (details, ly_symbol2scm ("edge-attraction-factor")); same_slope_penalty_ @@ -78,4 +74,8 @@ Slur_score_parameters::fill (Grob *me) = get_detail (details, ly_symbol2scm ("free-slur-distance")); edge_slope_exponent_ = get_detail (details, ly_symbol2scm ("edge-slope-exponent")); + close_to_edge_length_ + = get_detail (details, ly_symbol2scm ("close-to-edge-length")); + encompass_object_range_overshoot_ + = get_detail (details, ly_symbol2scm ("encompass-object-range-overshoot")); }