]> git.donarmstrong.com Git - lilypond.git/commitdiff
Better shape control of arpeggio brackets.
authorWerner Lemberg <wl@gnu.org>
Mon, 29 Apr 2013 08:24:46 +0000 (10:24 +0200)
committerWerner Lemberg <wl@gnu.org>
Fri, 10 May 2013 09:56:46 +0000 (11:56 +0200)
lily/arpeggio.cc
scm/define-grob-properties.scm
scm/define-grobs.scm

index 96b6bbd3d5e3be8ee09313fed12249c3f0c2e372..fa53ff261126b788d2a04a336fb0930d889e4053 100644 (file)
@@ -169,7 +169,7 @@ Arpeggio::brew_chord_bracket (SCM smob)
   Real lt = me->layout ()->get_dimension (ly_symbol2scm ("line-thickness"));
   Real sp = 1.5 * Staff_symbol_referencer::staff_space (me);
   Real dy = heads.length () + sp;
-  Real x = 0.7;
+  Real x = robust_scm2double (me->get_property ("protrusion"), 0.4);
 
   Stencil mol (Lookup::bracket (Y_AXIS, Interval (0, dy), lt, x, lt));
   mol.translate_axis (heads[LEFT] - sp / 2.0, Y_AXIS);
@@ -227,9 +227,10 @@ ADD_INTERFACE (Arpeggio,
 
                /* properties */
                "arpeggio-direction "
+               "dash-definition " // TODO: make apply to non-slur arpeggios
                "positions "
+               "protrusion "
                "script-priority " // TODO: make around-note-interface
                "stems "
-               "dash-definition " // TODO: make apply to non-slur arpeggios
               );
 
index b4861729b7788cc19424ca0c4f3adc33592f34c1..6434c15c4687cf5f0710d999200985112d1d2f2e 100644 (file)
@@ -734,6 +734,8 @@ positions are requested, the closest one is taken.")
      (prefer-dotted-right ,boolean? "For note collisions, prefer to
 shift dotted up-note to the right, rather than shifting just the
 dot.")
+     (protrusion ,number? "In an arpeggio bracket, the length of the
+horizontal edges.")
 
 ;;
 ;; r
index 8e94dae778de025d439d2e587e5740ca5611d08e..b89fc14757cde390830f60033eb8210f01e74dab 100644 (file)
        (direction . ,LEFT)
        (padding . 0.5)
        (positions . ,ly:arpeggio::calc-positions)
+       (protrusion . 0.4)
        (script-priority . 0)
        (side-axis . ,X)
        (staff-position . 0.0)