Hi all,
I am noticing that placing a double bar line at the end of a part
requires a separate \score {} for each part to get the desired results.
What I would like to know is how to write one \score {} that has all the
coding for a multi-part tune and shows the double bar lines at the
appropriate places for the end of each part and start of the next part.
I can make this work by adding a separate \score{} for each part, but it
just seems like there ought to be an easier way to do this. I am
attaching an example ly file and the output that hopefully shows what I
am trying to do.If I am missing something obvious or this can't be done, please let me know. Thanks in advance for your help, Ben
\version "2.18"
\include "bagpipe.ly"
\paper {
#(set-paper-size "letter" 'landscape )
system-count = #2
}
\header {
title = "Bar Test"
subtitle = " I want the double bar line at the end of every 8 bars. "
}
BarTest =
{
\bar ""
\set Timing.measurePosition = #(ly:make-moment -1 8) e8 \bar ".|" |
a4 a4 a4 a4 | a4 a4 a4 a4 | a4 a4 a4 a4 | a4 a4 a4 a4 |
a4 a4 a4 a4 | a4 a4 a4 a4 | a4 a4 a4 a4 | a4 a4 a4 a4 \bar "|." |
\break
\bar ".|"
a4 a4 a4 a4 | a4 a4 a4 a4 | a4 a4 a4 a4 | a4 a4 a4 a4 |
a4 a4 a4 a4 | a4 a4 a4 a4 | a4 a4 a4 a4 | a4 a4 a4 a4 \bar "|." |
\break
}
BarTest_One =
{
\bar ""
\set Timing.measurePosition = #(ly:make-moment -1 8) e8 \bar ".|" |
a4 a4 a4 a4 | a4 a4 a4 a4 | a4 a4 a4 a4 | a4 a4 a4 a4 |
a4 a4 a4 a4 | a4 a4 a4 a4 | a4 a4 a4 a4 | a4 a4 a4 a4 \bar "|." |
\break
}
BarTest_Two =
{
\bar ""
\set Timing.measurePosition = #(ly:make-moment -1 8) e8 \bar ".|" |
a4 a4 a4 a4 | a4 a4 a4 a4 | a4 a4 a4 a4 | a4 a4 a4 a4 |
a4 a4 a4 a4 | a4 a4 a4 a4 | a4 a4 a4 a4 | a4 a4 a4 a4 \bar "|." |
\break
}
\score {
\new GrandStaff <<
\new Staff = "GHB" <<
\new Voice {
\time 4/4
\BarTest
}
>>
>>
\header{
piece = " In this example, the closing double bar line is at the last line only but the opening double bar line is present both times. "
}
}
\score {
\new GrandStaff <<
\new Staff = "GHB" <<
\new Voice {
\time 4/4
\BarTest_One
}
>>
>>
\header{
piece = " This example works, but requires a separate \score {} for each grouping of 8 bars to show the closing double bar line. "
}
}
\score {
\new GrandStaff <<
\new Staff = "GHB" <<
\new Voice {
\time 4/4
\BarTest_Two
}
>>
>>
}
bartest.pdf
Description: Adobe PDF document
_______________________________________________ lilypond-user mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-user
