lilypond-user
[Top][All Lists]
Advanced

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

Re: alternative volta 2 when empty


From: Walt North
Subject: Re: alternative volta 2 when empty
Date: Sun, 29 Sep 2024 20:44:43 -0700
User-agent: Mozilla Thunderbird

Well... one more little improvement....  at least I don't need to split out the coding for the chords this way.

\version "2.24.4"

\layout {
  \context {
    \ChordNames
    \override BarLine.bar-extent = #'(0 . 2)
    \consists "Bar_engraver"
  }
}

ch = \chordmode {
  c1 c
  \repeat volta 2 {
    d d d d
    \alternative {
      \volta 1 { e e }
      \volta 2 {}
    }
  }
  <<
    \chordmode { f f f f }
    \chordmode {
      \set Score.repeatCommands = #'((volta #f) (volta "2.") end-repeat)
      s1
      \set Score.repeatCommands = #'((volta #f))
    }
  >>
}

\score { \new ChordNames {\ch} }




On 9/29/2024 8:25 PM, Walt North wrote:

Well.... after I sent this I find one way to do it though not ideal.  Perhaps there is something better.... but this will suffice though it still means basically splitting one measure out specially. Not much better then putting one measure under the volta.  Actually as I think about it putting one measure under volta might be cleaner in the long run then this extra manual volta coding. I'm open to suggestions.

sample below.

\version "2.24.4"

\layout {
  \context {
    \ChordNames
    \override BarLine.bar-extent = #'(0 . 2)
    \consists "Bar_engraver"
  }
}

ch = \chordmode {
  c1 c
  \repeat volta 2 {
    d d d d
    \alternative {
      \volta 1 { e e }
      \volta 2 {}
    }
  }
  \set Score.repeatCommands = #'((volta #f) (volta "2.") end-repeat)
  f
  \set Score.repeatCommands = #'((volta #f))
  f f f
}

\score { \new ChordNames {\ch} }



On 9/29/2024 8:08 PM, Walt North wrote:

What would be the correct way to code the following case?

I have a repeated section.  The first alternative volta has a couple of measure before going back to the repeat.  The second volta should just carry on with the remainder of the piece.  I'd like to have an indication of the 2. volta just to show where to carry on forward., The coding I have only shows volta 1. but not the (empty) volta 2.  I don't want the entire remainder of the piece to be under volta 2.  I rather not split out just the first measure of the remainder of the piece just to put it under volta 2. 

Thanks, Walt North

Simple sample below.

\version "2.24.4"

\layout {
  \context {
    \ChordNames
        \override BarLine.bar-extent = #'(0 . 2)
        \consists "Bar_engraver"
  }
}

ch = \chordmode {
  c1 c
  \repeat volta 2 {
    d d d d
    \alternative {
      \volta 1 { e e }
      \volta 2 {}
    }
  }
  f f f f
}

\score { \new ChordNames {\ch} }


if this were to be unfolded it would be:  C C D D D D E E D D D D F F F F F F F ...and so on.

There should be a brief volta 2. indication over the first F.




reply via email to

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