lilypond-user
[Top][All Lists]
Advanced

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

More arpeggio strangeness


From: Nick Payne
Subject: More arpeggio strangeness
Date: Thu, 08 Oct 2009 21:14:17 +1100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

This example has two identical bars, except that in the 2nd bar I've used a hack suggested by Keiren MacMillan to stop the arpeggios crowding up against the preceding notes. For some reason this doesn't have any effect on the final arpeggio. However, I've found that if I change the override for preceding stem to that one arpeggio to be \once \override Staff.Stem #'X-extent = #'(0 . 2.5), then it's appearance matches that of the others. I have no idea why a different override is required just for that one...

%==========================================
\version "2.13.4"

arpstem = \once \override Staff.Stem #'X-extent = #'(0 . 1.5)

treble = \relative c {
   d16\arpeggio <b' e> <b e> d,\arpeggio e\arpeggio <cis' a'> <cis a'>
       e,\arpeggio e\arpeggio <e cis'> <e cis'> e\arpeggio |
d16\arpeggio <b' e> <b e> \arpstem d,\arpeggio e\arpeggio <cis' a'> <cis a'> \arpstem e,\arpeggio e\arpeggio <e cis'> \arpstem <e cis'> e\arpeggio |
}

bass = \relative c {
g8.\arpeggio g16\arpeggio g8.\arpeggio g16\arpeggio g8.\arpeggio g16\arpeggio | g8.\arpeggio g16\arpeggio g8.\arpeggio g16\arpeggio g8.\arpeggio g16\arpeggio |
}

\score {
   <<
       \context Staff = guitar {
           \set Staff.connectArpeggios = ##t
           \clef "treble_8"
           \key d \major
           \time 3/4
           <<
               \context Voice = "1" { \voiceOne \treble }
               \context Voice = "4" { \voiceFour \bass }
           >>
       }
   >>
   \layout {
       \context {
           \Staff
               \consists "Span_arpeggio_engraver"
       }
   }
}
%==========================================

Nick

PNG image


reply via email to

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