lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: arpeggio symbol placement


From: Nick Payne
Subject: Re: arpeggio symbol placement
Date: Wed, 22 Dec 2010 06:31:21 +1100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]