[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Just chords
From: |
Xavier Scheuer |
Subject: |
Re: Just chords |
Date: |
Tue, 3 Aug 2010 15:44:06 +0200 |
2010/8/2 Timo Virtaneva <address@hidden>:
> Hi
>
> I have seached for a solution without any luck. I hope some one could
> help me.
>
> I cannot get the bar lines aligned as I want. What is wrong in the
> code?
>
> I just need guitar chords like this
>
> | G | C, D7 | G | C, D7 |
> | G | C, D7 | G | C, D7 |
> | G | Em | G | Em |
> | Hm | C | C | A7 | A7 |
> | G | C, D7 | G | C, D7 |
> | G | C, D7 | G | C, D7 |
>
Hi!
To achieve exactly what you want a combination of
– no indent (indent = #0) ;
– proportional notation (each measure takes the same horizontal
space) ;
– strict-note-spacing (because previous was not sufficient) AND
– ragged-right = ##t (because your 4th line has one measure more and
you want bar lines to be aligned)
seems necessary.
Like this:
\version "2.12.3"
\paper {
indent = #0
ragged-right = ##t
}
\layout {
\context {
\Score
\remove "Bar_number_engraver"
proportionalNotationDuration = #(ly:make-moment 1 8)
\override SpacingSpanner #'strict-note-spacing = ##t
}
}
\score {
\new ChordNames \with {
\consists Bar_engraver
\override BarLine #'bar-size = #4
\consists "Volta_engraver"
}
{
\chordmode {
g1 d2:7 c2 g1 c2 d2:7 \break
g1 e1:m g1 e1:m \break
b1:m c1 c1 a1 a1 \break
g1 c2 d2:7 g1 c2 d2:7 \break
g1 c2 d2:7 g1 c2 d2:7 \break
}
}
}
Cheers,
Xavier
--
Xavier Scheuer <address@hidden>