[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: single bar wanted after repeat volta
From: |
Thomas Morley |
Subject: |
Re: single bar wanted after repeat volta |
Date: |
Mon, 10 Dec 2018 21:37:29 +0100 |
Am Mo., 10. Dez. 2018 um 18:30 Uhr schrieb Veronika Neumann
<address@hidden>:
>
> Hello,
>
>
> please have a look at the attached pdf file. I want the circled bar to
> be a single bar. I also included the lilypond file.
>
>
> Many thanks in advance!
>
>
> Veronika Neuman
Hi Veronika,
several possibilities:
%% Via \override Staff.BarLine.glyph-name
\score {
<<
\relative c' {
\key d \major
\repeat volta 2 {
e2 r |
\set Score.repeatCommands = #(list (list 'volta "1., 3."))
R1
\set Score.repeatCommands = #'((volta #f) (volta "2., 4.") end-repeat)
r2
\set Score.repeatCommands = #'((volta #f))
r8 d4. |
\once \override Staff.BarLine.glyph-name = "|"
}
d1 d1 \bar "|."
}
>>
}
%% via \repeat { } \alternative { {} {} }
\score {
<<
\relative c' {
\key d \major
\repeat volta 2 {
e2 r |
}
\alternative {
{
\set Score.repeatCommands = #(list (list 'volta "1., 3."))
R1
}
{
\set Score.repeatCommands = #'((volta #f) (volta "2., 4.") end-repeat)
r2
\set Score.repeatCommands = #'((volta #f))
r8 d4. |
}
}
d1 d1
\bar "|."
}
>>
}
%% all manually
\score {
<<
\relative c' {
\key d \major
\set Score.repeatCommands = #'(start-repeat)
e2 r |
\set Score.repeatCommands = #(list (list 'volta "1., 3."))
R1
\set Score.repeatCommands = #'((volta #f) (volta "2., 4.") end-repeat)
r2
\set Score.repeatCommands = #'((volta #f))
r8 d4. |
d1 d1 \bar "|."
}
>>
}
HTH,
Harm