lilypond-user
[Top][All Lists]
Advanced

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

Re: Align Chord Name with Chord Position


From: Mats Bengtsson
Subject: Re: Align Chord Name with Chord Position
Date: Thu, 21 Dec 2006 13:22:06 +0100
User-agent: Thunderbird 1.5.0.7 (X11/20060909)

You didn't really say what kind of alignment you want. Also, it is  good
habit to cut down the example files to only illustrate the specific problem
you are asking about. However, here is an example that gives (at least almost)
centered alignment. If you want left alignment, just replace #CENTER with
#LEFT. Note that in your original example, you had specified your \layout{...} block at the top level of the file, which means that it applies to all the \score{...} blocks in the file. I choose to put it within the \score{...} block, so it only applies
to that particular "score".
Note also, that it in general is a better idea to make all the modifications of
a certain context type within a single \context{...}, see my example.

\version "2.10.0"
\markup { \bold "Acordes Usados" }
\score{

<<
\new ChordNames \chordmode {
e
cis:m
fis:7
b
fis:m7
fis:m
fis
e:7
a:9
b:sus4
b:7


}
\new Lyrics \lyricmode {
\markup {\fret-diagram-terse #"o;2;2;1;o;o;"}
\markup {\fret-diagram-terse #"x;4-(;6;6;5;4-);"}
\markup {\fret-diagram-terse #"2-(;4;;3;;2-);"}
\markup {\fret-diagram-terse #"x;2-(;4;4;4;2-);"}
\markup {\fret-diagram-terse #"2-(;4;;;;2-);"}
\markup {\fret-diagram-terse #"2-(;4;4;;;2-);"}
\markup {\fret-diagram-terse #"2-(;4;4;3;;2-);"}
\markup {\fret-diagram-terse #"o;2;2;1;3;o;"}
\markup {\fret-diagram-terse #"x;o;2-(;4;;2-) 3;"}
\markup {\fret-diagram-terse #"x;2-(;4;4;5;2-);"}
\markup {\fret-diagram-terse #"o;2;2;1;o;o;"}


} >>
\layout {
indent = 0

\context { \Score \remove "Bar_number_engraver" }
\context {
 \Lyrics
 \override LyricSpace #'minimum-distance = #1.5
 \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
 \override LyricText #'self-alignment-X = #CENTER
}
\context {
 \ChordNames
 \override ChordName   #'font-size = #1
 \override ChordName #'self-alignment-X = #CENTER
\override ChordName #'X-offset = #ly:self-alignment-interface::aligned-on-x-parent
}

}
}


  /Mats




reply via email to

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