lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: single bar wanted after repeat volta


From: Pierre Perol-Schneider
Subject: Re: single bar wanted after repeat volta
Date: Mon, 10 Dec 2018 21:44:23 +0100

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 <address@hidden> a écrit :
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

_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user

reply via email to

[Prev in Thread] Current Thread [Next in Thread]