lilypond-user
[Top][All Lists]
Advanced

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

Re: Putting fret diagrams in a separate score


From: Marc Hohl
Subject: Re: Putting fret diagrams in a separate score
Date: Fri, 11 Mar 2011 10:34:20 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8

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
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user





reply via email to

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