From: David Nalesnik Date: Tue, 6 Jan 2015 22:54:39 +0000 (-0600) Subject: Issue 4238: Glissando overlaps dot X-Git-Tag: release/2.19.16-1~2^2~38^2~8 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=3c6f25b11269a198da9e188274a5dbd0c3e583bd;p=lilypond.git Issue 4238: Glissando overlaps dot Glissandi will now begin after augmentation dots by default. This behavior may be changed by overriding a new subproperty named 'start-at-dot, set by default to #t. --- diff --git a/input/regression/glissando-dots.ly b/input/regression/glissando-dots.ly new file mode 100644 index 0000000000..c0c6621231 --- /dev/null +++ b/input/regression/glissando-dots.ly @@ -0,0 +1,24 @@ +\version "2.19.16" + +\header { + texidoc = "Glissandi begin after dots by default. This behavior may +be changed by overriding the @code{start-at-dot} property. +" +} + +\layout { + indent = 0 + ragged-right = ##t +} + +\relative c'' { + c2.\glissando b4 + c2..\glissando b8 + c2...\glissando b16 + \bar "||" + 2. -\tweak style #'trill \glissando 4 + \bar "||" + c2...\glissando g''16 + \override Glissando.bound-details.left.start-at-dot = ##f + c,,2...\glissando g''16 +} diff --git a/lily/line-spanner.cc b/lily/line-spanner.cc index 6921ba058e..5184d396a6 100644 --- a/lily/line-spanner.cc +++ b/lily/line-spanner.cc @@ -118,6 +118,10 @@ Line_spanner::calc_bound_info (SCM smob, Direction dir) if (acc && to_boolean (ly_assoc_get (ly_symbol2scm ("end-on-accidental"), details, SCM_BOOL_F))) x_coord = robust_relative_extent (acc, commonx, X_AXIS).linear_combination (attach); + Grob *dot = Grob::unsmob (bound_grob->get_object ("dot")); + if (dot && to_boolean (ly_assoc_get (ly_symbol2scm ("start-at-dot"), details, SCM_BOOL_F))) + x_coord = robust_relative_extent (dot, commonx, X_AXIS).linear_combination (attach); + details = scm_acons (ly_symbol2scm ("X"), scm_from_double (x_coord), details); diff --git a/scm/define-grobs.scm b/scm/define-grobs.scm index e939ac9b52..c859b52bcb 100644 --- a/scm/define-grobs.scm +++ b/scm/define-grobs.scm @@ -1067,6 +1067,7 @@ )) (left . ((attach-dir . ,RIGHT) (padding . 0.5) + (start-at-dot . #t) )) )) (cross-staff . ,ly:line-spanner::calc-cross-staff)