I am making a music book where each song is on its own page. The code for each song is:
title = ...
music = ...
\bookpart {
\header {
title = \title
}
\score {
\music
\layout { }
}
}
I have a special case where I want to put two songs on one page, because they are actually the same song, only in two different melodies. It should look like this:
Maybe someone can help me achieve this output?
Here is the code I wrote for that special page:
title = "Es war eine Mutter"
\bookpart {
\header {
title = \title
piece = "offical version"
}
% official version
\score {
\relative
{
\numericTimeSignature
\time 3/4
\repeat volta 2 { c'4 f f g a a f g g e f f }
}
\addlyrics {
Es war ei -- ne Mut -- ter, die hat -- te vier Kin -- der:
}
\addlyrics {
Den Früh -- ling, den Som -- mer, den Herbst und den Win -- ter.
}
\layout { }
}
% Jane's version
\score {
\relative
{
\numericTimeSignature
\time 3/4
\repeat volta 2 { c'4 f f a g g a e e g f f }
}
\addlyrics {
Es war ei -- ne Mut -- ter, die hat -- te vier Kin -- der:
}
\addlyrics {
Den Früh -- ling, den Som -- mer, den Herbst und den Win -- ter.
}
}
}
which gives this output:
This has two issues:
I don't want lyrics below the second version. But if I remove them, the notes will not align with the first version any more (they come closer together). But I want to keep the alignment.
I don't know how to set a different
piece
name for the second version. Since I am inside a\bookpart
, I cannot use a\header
block inside the second\score
block to set a localpiece
name.
I also tried a different approach: Putting both melodies into the same score.
\bookpart {
\header {
title = \title
piece = "official Version"
}
\score {
<<
% official version
\new Staff
\relative
{
\numericTimeSignature
\time 3/4
\repeat volta 2 { c'4 f f g a a f g g e f f }
}
\addlyrics {
Es war ei -- ne Mut -- ter, die hat -- te vier Kin -- der:
}
\addlyrics {
\override VerticalAxisGroup.nonstaff-unrelatedstaff-spacing.padding = #5
Den Früh -- ling, den Som -- mer, den Herbst und den Win -- ter.
}
% Jane's version
\new Staff
\relative
{
\numericTimeSignature
\time 3/4
\repeat volta 2 { c'4 f f a g g a e e g f f }
}
>>
\layout { }
}
}
This gave me the following output:
which again has issues, namely:
- There's the connection bar (or whatever it is called) between both melodies. I don't want that, since it suggests to play both melodies simultaneously.
- I don't know how to set a
piece
name for the second version at all, since it is just the same\score
.