Hi Veronika,
See:
\version "2.18.2"

\score {
  <<
    \relative c' {
      \key d \major
      \repeat volta 2 {
        e2 r |
      } % <= see
      \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. |
      \bar "|"
    %} <= misplaced
      d1 d1 \bar "|."
    }
  >>
}

Cheers,
Pierre

Le lun. 10 déc. 2018 à 21:38, Thomas Morley <thomasmorle...@gmail.com> a
écrit :

> Am Mo., 10. Dez. 2018 um 18:30 Uhr schrieb Veronika Neumann
> <veronika.neum...@sonntag.it>:
> >
> > 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
>
> _______________________________________________
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to