lilypond-user
[Top][All Lists]
Advanced

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

Re: Omitting an accidental


From: David Sumbler
Subject: Re: Omitting an accidental
Date: Tue, 24 Sep 2024 21:47:45 +0100
User-agent: Evolution 3.52.3-0ubuntu1

On Tue, 2024-09-24 at 22:03 +0200, Xavier Scheuer wrote:
On Tue, 24 Sept 2024 at 21:53, David Sumbler <david@aeolia.co.uk> wrote:
>
> I am having difficulty with the new repeat structure.  The code below
> produces the result I want except that the repeat should only be 2 bars
> long.  In other words, the ":|." bar line at the end of the inner
> repeat should come at the end of the 1st time bar (after the note F)
> not 2 bars later after the A.

Hello,

If I understood correctly what you want, you have to put the a'1 outside of the \repeat volta 2 block (but inside the volta 1 of your repeat segno block).

\version "2.24.3"
\language "english"

\score {
  \repeat segno 2 {
    c'1 d'
    \volta 2 \fine
    \volta 1 {
      \repeat volta 2 {
        e'1
        \alternative {
          \volta 1 { f'1 }
          \volta 2 { g'1 }
        }
      }
      a'1
    }
  }
}

Kind regards,
Xavier

Doh!  Stupid of me, I suppose, but all these nested curly brackets do my head in a bit.  Anyway, thank you very much for solving it for me.

David


reply via email to

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