lilypond-user
[Top][All Lists]
Advanced

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

arpeggio placement


From: David Stocker
Subject: arpeggio placement
Date: Mon, 24 Aug 2009 22:21:51 -0400
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

I'm having trouble with altered fingering placements fouling up the position of an arpeggio line. It only happens when fingering indications are placed to the left of the notes--the arpeggio line and fingerings are moved way to the left, leaving a significant amount of space between the line and the notes. Fiddling with the placement of the fingerings using \tweak #'extra-offset changes the position of the fingerings, but leaves the arpeggio line where LilyPond's decided it should go, which is still too far to the left of the notes.

I've attached a minimal example below. Any hints on forcing the arpeggio line to the right to make the placement more natural would be appreciated.

Thanks,

David

%%begin test file%%

\version "2.13.3"

\include "english.ly"

guitarFinUpper = {
 \set fingeringOrientations = #'(left)
 \override Fingering #'font-size = #-6
}

guitarFinLower = {
 \set fingeringOrientations = #'(left)
 \override Fingering #'font-size = #-6
}

staff = {
 \clef "treble_8"
 \key a \major
 \time 4/4
}

%%arpeggio with fingerings

fingersOne = {
 \relative c' {
   \voiceOne
   \guitarFinUpper
   d8 e fs e <gs,-1 b-0 e-0>2 \arpeggio
 }
}

%%arpeggio without fingerings

fingersTwo = {
 \relative c' {
   \voiceOne
   \guitarFinUpper
   d8 e fs e <gs, b e>2 \arpeggio
 }
}

fingersThree = {
 \relative c' {
   \voiceOne
   \guitarFinUpper
d8 e fs e <gs,-\tweak #'extra-offset #'(4.0 . 0)-1 b-\tweak #'extra-offset #'(4.0 . 0)-0 e-\tweak #'extra-offset #'(4.0 . 0)-0>2 \arpeggio
 }
}

%%arpeggio with fingerings

thumbOne = {
 \relative c {
   \voiceTwo
   \guitarFinLower
<b fs' a>2 <e, d'-\tweak #'extra-offset #'(0 . -0.5)-0 fs-\tweak #'extra-offset #'(0 . -0.5)-3> \arpeggio
 }
}

%%arpeggio without fingerings

thumbTwo = {
 \relative c {
   \voiceTwo
   \guitarFinLower
   <b fs' a>2 <e, d' fs> \arpeggio
 }
}

thumbThree = {
 \relative c {
   \voiceTwo
   \guitarFinLower
<b fs' a>2 <e, d'-\tweak #'extra-offset #'(4.0 . -0.5)-0 fs-\tweak #'extra-offset #'(4.0 . -0.5)-3> \arpeggio
 }
}



%%the arpeggio line is shifted too far left

\score {
 \new Staff = "guitar"
 \with {
   \consists "Span_arpeggio_engraver"
 }
 {
   \set Staff.instrumentName = "Guitar"
   \set Staff.connectArpeggios = ##t
   \set Staff.beatLength = #(ly:make-moment 1 8)
   \set Staff.beatGrouping = #'(4 4)
   \staff
   <<
     \new Voice = "fingers" {
   \fingersOne
     }
     \new Voice = "thumb" {
   \thumbOne
     }
   >>
 }
}

%%this arpeggio line is acceptable, but I need the fingerings to be diplayed as well

\score {
 \new Staff = "guitar"
 \with {
   \consists "Span_arpeggio_engraver"
 }
 {
   \set Staff.instrumentName = "Guitar"
   \set Staff.connectArpeggios = ##t
   \set Staff.beatLength = #(ly:make-moment 1 8)
   \set Staff.beatGrouping = #'(4 4)
   \staff
   <<
     \new Voice = "fingers" {
   \fingersTwo
     }
     \new Voice = "thumb" {
   \thumbTwo
     }
   >>
 }
}

%%even moving the fingerings an appropriate distance to the right leaves the arpeggio line in the same place

\score {
 \new Staff = "guitar"
 \with {
   \consists "Span_arpeggio_engraver"
 }
 {
   \set Staff.instrumentName = "Guitar"
   \set Staff.connectArpeggios = ##t
   \set Staff.beatLength = #(ly:make-moment 1 8)
   \set Staff.beatGrouping = #'(4 4)
   \staff
   <<
     \new Voice = "fingers" {
   \fingersThree
     }
     \new Voice = "thumb" {
   \thumbThree
     }
   >>
 }
}

%%end test file
\version "2.13.3"

\include "english.ly"

guitarFinUpper = {
  \set fingeringOrientations = #'(left)
  \override Fingering #'font-size = #-6
}

guitarFinLower = {
  \set fingeringOrientations = #'(left)
  \override Fingering #'font-size = #-6
}

staff = {
  \clef "treble_8"
  \key a \major
  \time 4/4
}

%%arpeggio with fingerings

fingersOne = {
  \relative c' {
    \voiceOne
    \guitarFinUpper
    d8 e fs e <gs,-1 b-0 e-0>2 \arpeggio
  }
}

%%arpeggio without fingerings

fingersTwo = {
  \relative c' {
    \voiceOne
    \guitarFinUpper
    d8 e fs e <gs, b e>2 \arpeggio
  }
}

fingersThree = {
  \relative c' {
    \voiceOne
    \guitarFinUpper
    d8 e fs e <gs,-\tweak #'extra-offset #'(4.0 . 0)-1 b-\tweak #'extra-offset 
#'(4.0 . 0)-0 e-\tweak #'extra-offset #'(4.0 . 0)-0>2 \arpeggio
  }
}

%%arpeggio with fingerings

thumbOne = {
  \relative c {
    \voiceTwo
    \guitarFinLower
    <b fs' a>2 <e, d'-\tweak #'extra-offset #'(0 . -0.5)-0 fs-\tweak 
#'extra-offset #'(0 . -0.5)-3> \arpeggio
  }
}

%%arpeggio without fingerings

thumbTwo = {
  \relative c {
    \voiceTwo
    \guitarFinLower
    <b fs' a>2 <e, d' fs> \arpeggio
  }
}

thumbThree = {
  \relative c {
    \voiceTwo
    \guitarFinLower
    <b fs' a>2 <e, d'-\tweak #'extra-offset #'(4.0 . -0.5)-0 fs-\tweak 
#'extra-offset #'(4.0 . -0.5)-3> \arpeggio
  }
}



%%the arpeggio line is shifted too far left

\score {
  \new Staff = "guitar"
  \with {
    \consists "Span_arpeggio_engraver"
  }
  {
    \set Staff.instrumentName = "Guitar" 
    \set Staff.connectArpeggios = ##t
    \set Staff.beatLength = #(ly:make-moment 1 8)
    \set Staff.beatGrouping = #'(4 4)
    \staff
    <<
      \new Voice = "fingers" {
        \fingersOne
      }
      \new Voice = "thumb" {
        \thumbOne
      }
    >>
  }
}

%%this arpeggio line is acceptable, but I need the fingerings to be diplayed as 
well

\score {
  \new Staff = "guitar"
  \with {
    \consists "Span_arpeggio_engraver"
  }
  {
    \set Staff.instrumentName = "Guitar" 
    \set Staff.connectArpeggios = ##t
    \set Staff.beatLength = #(ly:make-moment 1 8)
    \set Staff.beatGrouping = #'(4 4)
    \staff
    <<
      \new Voice = "fingers" {
        \fingersTwo
      }
      \new Voice = "thumb" {
        \thumbTwo
      }
    >>
  }
}

%%even moving the fingerings an appropriate distance to the right leaves the 
arpeggio line in the same place

\score {
  \new Staff = "guitar"
  \with {
    \consists "Span_arpeggio_engraver"
  }
  {
    \set Staff.instrumentName = "Guitar" 
    \set Staff.connectArpeggios = ##t
    \set Staff.beatLength = #(ly:make-moment 1 8)
    \set Staff.beatGrouping = #'(4 4)
    \staff
    <<
      \new Voice = "fingers" {
        \fingersThree
      }
      \new Voice = "thumb" {
        \thumbThree
      }
    >>
  }
}

reply via email to

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