Hi, Stewart:
Has anyone had any joy regarding/ideas for this?
I'm at rather an impass at to how I might progress.
See attached.
I need three voices for the notes themselves, and then another one
for the dynamics/textspanners/other markings.
Why did you double-nest Voice 3? i.e., << \blah \\ << \foo \\ \bar >> >>
I flattened the Voice and now the TextSpanner works fine.
Of course, you'll have to play around with the vertical alignment,
but that's a minor tweak.
Hope this helps!
Kieren.
\version "2.8.0"
top = \relative c''
{
\repeat unfold 3 { g,,32 g'' g g g,32 g' g g g,32 g' g g g,32 g' g g g,32 g' g g g,32 g' g g}
}
pedal = \relative c'
{
g,2. | g | g |
}
bottom = \relative c'
{
\repeat unfold 3 { s8 g g g g g | }
}
dynamics = \relative { s2.\p }
fingering = \relative { s2.^\markup "fingering" }
barring = \relative
{
\override TextSpanner #'edge-text = #'("start" . "end")
\override TextSpanner #'padding = #6
s2.\startTextSpan | s2. | \break s2 s8 s16 s32 s\stopTextSpan |
}
\score
{
<<
\new Staff = "guitar"
{
\clef "G_8"
\time 3/4
#(override-auto-beam-setting '(end * * * *) 1 4 'Staff)
#(override-auto-beam-setting '(end * * * *) 1 2 'Staff)
#(override-auto-beam-setting '(end * * * *) 3 4 'Staff)
\override Staff.NoteCollision #'merge-differently-headed = ##t
\override Staff.NoteCollision #'merge-differently-dotted = ##t
<<
\context Voice = "1" { \voiceOne \top }
\context Voice = "2" { \voiceTwo \pedal }
\context Voice = "4" { \voiceFour \bottom }
\context Voice = "3" { \voiceThree << \dynamics \\ << \fingering \\ \barring >> >> }
>>
}
>>
}
\score
{
<<
\new Staff = "guitar"
{
\clef "G_8"
\time 3/4
#(override-auto-beam-setting '(end * * * *) 1 4 'Staff)
#(override-auto-beam-setting '(end * * * *) 1 2 'Staff)
#(override-auto-beam-setting '(end * * * *) 3 4 'Staff)
\override Staff.NoteCollision #'merge-differently-headed = ##t
\override Staff.NoteCollision #'merge-differently-dotted = ##t
<<
\new Voice = "1" { \voiceOne \top }
\new Voice = "4" { \voiceFour \bottom }
\new Voice = "2" { \voiceTwo \pedal }
\new Voice = "3" { \voiceThree << \dynamics \\ \fingering \\ \barring >> }
>>
}
>>
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user