Am 10.03.2011 19:52, schrieb Keith OHara:
Marc Hohl<marc<at> hohlart.de> writes:
I try to put fret diagrams at the beginning of a piece.
My input file looks like this:
<<
\new ChordNames \chordmode {
g:m
}
\new Lyrics \lyricmode {
\markup { \fret-diagram #"w:4;4-o;3-o;2-1;1-3;" }
}
>>
Warning: staff-affinities should only decrease
The new staff-spacing system has the concept of distinguishing staves from
lines that are attached to staves. Both ChordNames and Lyrics are looking
for a staff in between them, so they can space themselves relative to it.
"staff-affinity" is the setting that controls which direction a line looks
for attachment.
Thanks for this great explanation!
For your case, let one of the non-staff lines become independent, with
\new Lyrics \with { \override VerticalAxisGroup #'staff-affinity = ##f }
Yes, works great!
Meanwhile, I had another idea, because the "lyrics", i.e. the fret diagrams,
are left-aligned in respect to the ChordNames, so I found a better solution,
just for the record:
\markup {
\fill-line {
\center-column { Gm \fret-diagram #"w:4;4-o;3-o;2-1;1-3;" }
\center-column { X77 \fret-diagram #"w:4;4-o;3-o;2-1;1-3;" }
}
}
Regards,
marc
That warning message is bad. Can anybody suggest better than :
"
Warning: two adjacent non-staff lines ask to be spaced relative to a non-
existent staff between them; need to change staff-affinity.
"
(I checked the code to confirm that this describes the situation LilyPond
is trying to handle, and she makes a guess and effectively changes one staff
affinity.)
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user