bug-lilypond
[Top][All Lists]
Advanced

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

Re: Changing volta number text


From: Peter Chubb
Subject: Re: Changing volta number text
Date: Sat, 15 May 2021 08:11:45 +1000
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (Goj┼Ź) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

>>>>> "Ralph" == Ralph Palmer <palmer.r.violin@gmail.com> writes:

Ralph> I've gone slightly crazy on a couple of occasions, trying to
Ralph> figure out how to change a volta number, either to a different
Ralph> number(s) or to text.

You need to handle the whole thing yourself, rather than using the
\alternative construct,

Something like this:

----
\version "2.22.0"

test = {
  \time 3/4
  \repeat volta 3
  {
    a'4 b' c' |
    b'4 c' d' |
  }
  \set Score.repeatCommands = #'((volta "1., 3." ))
  e'4 f' g' |
  d'4 c' b' |
  \set Score.repeatCommands = #'((volta #f) (volta "2.") end-repeat)
  r2.
  \set Score.repeatCommands = #'((volta #f) end-repeat (volta "4."))
  g'4 a' b' |
  \set Score.repeatCommands = #'((volta #f))
  c'2.
}

\score {
  \test
}

-- 
Dr Peter Chubb                https://trustworthy.systems/
Trustworthy Systems Group                        CSE, UNSW



reply via email to

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