Dirck Nagy wrote:


I am trying to extend an arpeggio line to cover the entire chord in the example below.


You could try out my easyChArp, originally written for guitarists,
and updated here for 2.20.

Include (or paste in) its code

and replace:   <c, e g c>1 \arpeggio
with       :   \easyChArp #+2 <c, e g c>1


Cheers,
Robin

% updated for 2.20
easyChArp = #(define-music-function (grow) (number?)
  ;% easy chord arpeggio; extendable in one staff without connectArpeggios
  #{ % apply in one voice, supplying growth parameter: + = up, - = down
    \once \override Arpeggio #'positions  = #(lambda (grob)
      (let ((iv (ly:arpeggio::calc-positions grob))
        (grow-hi (max 0 (/ grow 2)))
        (grow-lo (min 0 (/ grow 2))))
        (cons (+ (car iv) grow-lo) (+ (cdr iv) grow-hi))))
    $(make-music 'EventChord 'elements (list (make-music 'ArpeggioEvent)))
  #})
%

Reply via email to