On 15.03.2014 09:09, Pierre Perol-Schneider wrote:
Mini example please
~Pierre
Sorry, forgot to post one.
During shortening some code into a mini example, I was actually able to
solve my problem. I'm posting it anyway because I'm not sure it's the
most elegant or clever was of doing.
Short repetition of what I want to achieve:
* a StaffGroup consisting of two Staffs
* a ChordLine in between
* Fixed distances between the staffs
* the ChordLine centered in between.
I can't shake the feeling that my approach may be a bit too brute-force,
but at least it works for me :) If someone has a better approach, I'd be
interested in trying it.
Thanks,
Matthias
\version "2.18.0"
startLine =
{
\overrideProperty Score.NonMusicalPaperColumn.line-break-system-details #'((alignment-distances . (8 6 6)))
\break
}
harmonies = \chordmode
{
c1 a1:m
f1 c1
}
upper = \relative c''
{
\startLine
g4 g e g | g g e g |
\startLine
a f a a | g g e g }
lower = \relative c
{
\startLine
c4 e g c | c,4 e g c |
\startLine
f,4 a c f | c,4 e g c |
}
\new Score
\with
{
\override NonMusicalPaperColumn.line-break-permission = ##f
\override NonMusicalPaperColumn.page-break-permission = ##f
}
{
\new StaffGroup
<<
\new Staff = upper
{
\clef treble
\upper
}
\new ChordNames
{
\override VerticalAxisGroup.staff-affinity = ##f
\harmonies
}
\new Staff = lower
{
\clef bass
\lower
}
>>
}
\layout
{
\context
{
\StaffGroup
\accepts "ChordNames"
}
\context
{
\Score
\remove "Bar_number_engraver"
}
}
\paper
{
set-paper-size = "a4"
systems-per-page = #6
ragged-bottom = ##t
ragged-right = ##f
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user