I have been fiddling around for a whole day now — trying to set a correct LilyPond notation. While I found with trial and error, that I could display all tones and vocals, I am not able to get the correct timings (and tones), so I have a few questions.
How can I get the right bars and times? It seems that LilyPond sets some weird timings for example with 9/8 timing, and whatever I do I can't get the bars (or the vocals) to the right places.
How can I correctly separate the refrain from the main text? The score is without a break and I didn't manage to find the structure for a simple song.
Does anyone know, what the right English notation I have to write is, for example when I try to display an "h"? I've tried it with a "b" but it seems, it displays always one octave deeper.
The timing is weird, for example on bar 5, there is more than 4/4 tact, and on bar #7 I can't figure out, what is happening at all.
I try to get a simple framework to convert my songs to LilyPond, therefore I tried to make it as simple as possible, but until now I had no luck.
Here is what I have found out until now:
\version "2.18.2"
\include "predefined-guitar-fretboards.ly"
verseI = \lyricmode {
\set stanza = #"1."
Ach was
wird denn mei -- ne Mut -- ter
sa -- gen wenn
ich einst kehr zu rück?
}
verseII = \lyricmode {
\set stanza = #"2."
Und wenn
ich dann ei -- nen Voll -- bart
ha -- be mein
Sohn was bist jetzt Du?
}
theChords = \chordmode {
s4 g1 c1 d1 g1
}
staffMelody = \relative c' {
\key d \major
\clef treble
\time 4/4
\override Score.BarNumber.break-visibility = #'#(#t #t #t)
\set Score.currentBarNumber = #1
% Permit first bar number to be printed
\bar ""
\partial 4 a8 d8
fis4 fis8 fis8 fis8 g4 fis8
e4 b2 b'4
f4. f4 f4 f8
fis2 r4 r4
f8
}
theChordsRefrain = \chordmode {
a d g1 c1 d1 g1 d g
}
RefrainI = \lyricmode {
\set stanza = #"2."
Ich bin \bar ":|" Po
lier, fi -- de -- ri, fi -- de
ra, sauf nur noch
Bier -- fi -- de -- ri -- fi -- de
ra -- ich bin Po
lier, sauf nur noch
Bier, ich
bin Po
}
staffRefrain = \relative c' {
\key d \major
\clef treble
\time 4/4
r2 a2 d2 e2
\bar ".|:-||"
fis4 fis8 fis8 fis4 fis8 fis8
fis4 fis4 g4 fis4
e4 b8 b8 b4 b8 b8
b b4 b4 b4
b2. b8 % lier sauf
b2. b8 % nur noch
b8 \bar ":|." % Bier Ich
b8 b8 b4 % bin Po
}
\score {
{
<<
\context ChordNames { \theChords }
\new Staff {
\context Voice = "voiceMelody" { \staffMelody }
}
\new Lyrics = "lyricsI" {
\lyricsto "voiceMelody" \verseI
}
\new Lyrics = "lyricsII" {
\lyricsto "voiceMelody" \verseII
}
>>
<<
\context ChordNames { \theChordsRefrain }
%\new Staff {
\context Voice = "voiceMelody" { \staffRefrain }
%} % Dont know
\new Lyrics = "RefrainI" {
\lyricsto "voiceMelody" \RefrainI
}
>>
}
}
\layout { }
\midi { }
Addendum:
With the help of Alephzero, I managed now to display a better notation:
....
\score {
<<
\context ChordNames { \theChords \theChordsRefrain }
\new Staff {
\context Voice = "voiceMelody" { \staffMelody \staffRefrain }
}
<<
\new Lyrics = "lyricsI" {
\lyricsto "voiceMelody" \lyricmode { \verseI \RefrainI }
}
\new Lyrics = "lyricsI" {
\lyricsto "voiceMelody" \lyricmode { \verseI \RefrainII }
}
\new Lyrics = "lyricsI" {
\lyricsto "voiceMelody" \lyricmode { \verseI \RefrainIII }
}
\new Lyrics = "lyricsI" {
\lyricsto "voiceMelody" \lyricmode { \verseI \RefrainIV }
}
>>
\new Lyrics = "lyricsII" {
\lyricsto "voiceMelody" \lyricmode { \verseII }
}
\new Lyrics = "lyricsIII" {
\lyricsto "voiceMelody" \lyricmode { \verseIII }
}
\new Lyrics = "lyricsIV" {
\lyricsto "voiceMelody" \lyricmode { \verseIV }
}
>>
}
....
Two questions remain:
- How can I place the chords not only at the boundary of the bars?
- How can I write the first lyric only once, and not (because it is the same) 4 times?
I attached the new progress (It is not fully correct since it is only an example)
f8
you have at the end of yourstaffMelody
. Remove thisf8
and it will fix m. 5. It will also fix m. 7, which looks strange because that earlierf8
has moved everything else forward one eighth-note. Unfortunately I'm not sure exactly what you mean with questions 1, 2, and 5, so I'm not sure I can help with those right now.f8
does for some reason remove the entire refrain. I was on version 2.19.40 when I first tried it, and that doesn't happen; I'm not sure why it happens in 2.18.2. As for some other weird rhythms, I found the song here, and a number of your rhythms could use some cleaning up. Lastly, do you have to organize your score with a refrain? Why not just use a single score and put in a\bar ".|:"
when you need it?