I am deeply grateful for sorting out these problems associated with the
bagpipe tune format and in particular those associated with repeats. I have
another irritating glitch in the same grain. A measure can have two
alternative structures depending on whether it is played the first or second
time. This is illustrated in the following snippet. My approach to this
works, however, i get a warning: "already have a volta spanner, ending that
one prematurely" and the second spanner remains open to the right. Any
suggestions will be most welcome.  

\version "2.18.0"      
  
music = \relative c''' {
        \key c \major
        \time 2/4
        \bar ".|:"
        
    \set Score.repeatCommands = #'(start-repeat)
    \partial 8 g8
    a16. [g32 a16. f32] e8 [c32 a16.]
    a8 a'16. [e32 f16. e32] c32 a16.
    a'16. [g32 a16. e32] c32 [e16. a,16. e'32]
    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.]
    \set Score.repeatCommands = #'((volta #f))
    \set Score.repeatCommands = #'((volta "2.")) 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 
    \set Score.repeatCommands = #'(end-repeat)
    \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-tp163676p164563.html
Sent from the User mailing list archive at Nabble.com.

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to