Maybe that was a bad example, sorry.
Here is another one: I'm trying to get the arpeggio line to span from the low "c" to the highest "a", which is in a separate voice:
Here is the code for this example; could someone correct my example to show how it is done?
\version "2.20.0"
\header {
title = "arpeggio example #2"
% Remove default LilyPond tagline
tagline = ##f
}
#(define RH rightHandFinger)
global = {
\key c \major
\numericTimeSignature
\time 4/4
%tempo padding
\override Score.MetronomeMark.padding = #5
\tempo "tempo"
%pickup measure
%\partial 4
}
VoiceOne = \relative c' {
\global
% Music follows here.
a'2
}
VoiceTwo = \relative c' {
\global
\stemDown
% Music follows here.
<c, e g >2 \arpeggio
}
VoiceThree = \relative c' {
\global
% Music follows here.
}
VoiceFour = \relative c' {
\global
% Music follows here.
}
\score {
\new Staff \with {
midiInstrument = "acoustic guitar (nylon)"
} { \clef "treble_8" << \VoiceOne \\ \VoiceTwo \\ \VoiceThree \\ \VoiceFour >> }
\layout { }
}
\paper {
system-system-spacing.basic-distance = 20
markup-markup-spacing.basic-distance = 8
markup-system-spacing.basic-distance = 36
last-bottom-spacing.basic-distance = 24
top-system-spacing.basic-distance = 1
top-system-spacing.basic-distance = 24
}