lilypond-user
[Top][All Lists]
Advanced

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

Re: nabble (barlines in volta brackets)


From: Aaron Hill
Subject: Re: nabble (barlines in volta brackets)
Date: Sun, 20 Jun 2021 14:33:32 -0700
User-agent: Roundcube Webmail/1.4.9

On 2021-06-20 1:13 pm, Flaming Hakama by Elaine wrote:
Ok, so I was going to try figuring out how to use my \barline ":|]" in a
volta repeat

\defineBarLine ":|]" #'(":|]" "" " |.")
\relative {
  \repeat volta 2 { c''4 d e f | }
  \alternative {
    { c2 e | }
    \bar ":|]"
    { f2 g | }
  }
  c1
}

but I get

programming error: Spanner `VoltaBracket' is not fully contained in parent
spanner.  Ignoring orphaned part

And it doesn't print the 2nd ending bracket.

And does anyone have a hint as to how to get the 2nd ending to work when
using this barline?

Your \bar command is sitting outside a music expression, so it is getting treated as an alternative all on its own--if I understand the constructs involved. Try instead:

%%%%
\defineBarLine ":|]" #'(":|]" "" " |.")
\relative {
  \repeat volta 2 { c''4 d e f | }
  \alternative {
    { c2 e | \bar ":|]" }
    { f2 g | }
  }
  c1
}
%%%%

P.S. No idea about the nabble stuff... does the archive [1] at lists.gnu.org have the data you want?
[1]: https://lists.gnu.org/archive/html/lilypond-user/


-- Aaron Hill



reply via email to

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