lilypond-user
[Top][All Lists]
Advanced

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

Re: Repeat volta not at beginning of piece doesn't get initial repeat ba


From: John McWilliam
Subject: Re: Repeat volta not at beginning of piece doesn't get initial repeat bar line
Date: Sat, 19 Jul 2014 05:59:54 -0700 (PDT)

That works for me too. Thanks!
One last detail - I hope - when the difference between the first and 

second time involves a whole bar the spanners cannot be seperated by a 

transparent bar. In such cases is the following snippet acceptable or is 

there another tweak which can be used to seperate them?
................................

\version "2.18.0"

#(allow-volta-hook "|")

music = \relative c''' {
        \key c \major
        \time 2/4
        \bar ".|:"

        \repeat volta 2 {
          \partial 8 g8
          a16. [g32 a16. f32] e8 [c32 a16.]
          \set Score.repeatCommands = #'((volta "1."))
          a8 a'16. [e32 f16. e32] c32 a16.
          \set Score.repeatCommands = #'((volta #f)(volta "2."))
          a'16. [g32 a16. e32] c32 [e16. a,16. e'32]
          \set Score.repeatCommands = #'((volta #f))
          c8 b b[ g']
          \break
          \set Score.measureLength = #(ly:make-moment 5 8)
          a16. g32 a16. f32 e8
          \set Score.repeatCommands = #'((volta "1."))
          c32 [ a16.]
          \once \hide Score.BarLine
          \once \hide Score.SpanBar
          \set Score.repeatCommands = #'((volta #f)(volta "2.") end-

repeat)
          c32 [e16.]
          \set Score.repeatCommands = #'((volta #f))

          \set Score.measureLength = #(ly:make-moment 4/8)
          a,8 a'16. e32 f16. e32 c32 a16.
          b16.[ c32 d16. e32] f32 [ a16. e16. b32]
          c8 [a] a
        }
        \break
} % end relative

\score {
   \new Staff \music
}




-----
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Repeat-volta-not-at-beginning-of-piece-doesn-t-get-initial-repeat-bar-line-tp163676p164642.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

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