On 21/12/10 23:28, Peter Buhr wrote:
\version "2.13.40"
\include "english.ly"
#(set-global-staff-size 24)
melody = \relative c {
\set fingeringOrientations = #'(left)
\set Staff.connectArpeggios = ##t
\stemUp<g''-4 e>2\arpeggio f4 e \break
}
bass = \relative c {
\set fingeringOrientations = #'(left)
<g' e>2\arpeggio d4 c \break
}
\score {
<<
\new Staff \with {
\consists "Span_arpeggio_engraver"
}<<
\clef "treble_8"
\context Voice = one \melody
\context Voice = two \bass
>>
>>
}
Arpeggios and fingering don't play well together. I have a music
function that I include in anything containing fingering and arpeggios
to fix the problem. The value you need pass into the function will
change depending on whether the chord contains accidentals etc:
\version "2.13.43"
\include "english.ly"
#(set-global-staff-size 24)
arpfinger = #(define-music-function (parser location pad) (number?) #{
\once \override Staff.Arpeggio #'direction = #RIGHT
\once \override Staff.Arpeggio #'padding = #$pad
#})
melody = \relative c {
\set fingeringOrientations = #'(left)
\set Staff.connectArpeggios = ##t
\stemUp \arpfinger #-4 <g''-4 e>2\arpeggio f4 e \break
}
bass = \relative c {
\set fingeringOrientations = #'(left)
<g' e>2\arpeggio d4 c \break
}
\score {
<<
\new Staff \with {
\consists "Span_arpeggio_engraver"
} <<
\clef "treble_8"
\context Voice = one \melody
\context Voice = two \bass
>>
>>
}
There are one other simple music function I use with arpeggios, which is
sometimes needed when Lilypond positions the arpeggio too close to the
preceding barline or note:
arpspace = #(define-music-function (parser location extent) (pair?) #{
\once \override Staff.Arpeggio #'X-extent = #$extent
#})
Nick
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user