lilypond-user
[Top][All Lists]
Advanced

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

Re: repeat in alternative


From: Aaron Hill
Subject: Re: repeat in alternative
Date: Fri, 15 Nov 2019 08:24:47 -0800
User-agent: Roundcube Webmail/1.3.8

On 2019-11-15 8:02 am, Sandro Santilli wrote:
Is there a way to obtain what I'm finding in this paper sheet ?
http://strk.kbt.io/tmp/repeat-in-alternative.png

It's basically a repating section starting within an alternative
section...

Two options here:

%%%%
\version "2.19.83"

{
  \time 3/4
  \repeat volta 2 { a'4 b'2 }
  \alternative {
    { g'2 r4 \bar ":|.|:" }
    { c''2. }
  }
  { b'8 a' g'2 \bar ":|." f'2. \bar "|." }
}

{
  \time 3/4
  \set Score.repeatCommands = #'(start-repeat)
  a'4 b'2
  \set Score.repeatCommands = #'((volta "1."))
  g'2 r4
\set Score.repeatCommands = #'((volta #f) end-repeat start-repeat (volta "2."))
  c''2.
  \set Score.repeatCommands = #'((volta #f))
  b'8 a' g'2
  \set Score.repeatCommands = #'(end-repeat)
  f'2. \bar "|."
}
%%%%

Note that using repeatCommands handles the bar line types for you, although it opts for ":..:" as the double-sided repeat.

-- Aaron Hill



reply via email to

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