Hi John, how about :
\version "2.18.0" %#(allow-volta-hook "|") #(allow-volta-hook "||") \score { \new Staff { \time 3/4 %adjust time to suit specific tunes \bar ".|:" % Part 1 \set Score.repeatCommands = #'(start-repeat) \repeat unfold 4 {a4 a a} \set Score.repeatCommands = #'((volta "1")) \repeat unfold 4 {a4 a a} \break \set Score.repeatCommands = #'((volta #f) (volta "2. --1,2") end-repeat) \repeat unfold 4 {a4 a a} \bar "||" \set Score.repeatCommands = #'((volta #f)) \stopStaff % Increasing the unfold counter will expand the staff-free space \repeat unfold 6 { s4 s4 s4 } \break \once \hide Score.BarLine \startStaff % Resume bar count and show staff lines again % Part 2 \set Score.repeatCommands = #'(start-repeat) \repeat unfold 4 {a4 a a } \set Score.repeatCommands = #'((volta "1")) \repeat unfold 4 {a4 a a } \set Score.repeatCommands = #'((volta #f)) }%end staff }%end score HTH, Piere 2014-12-03 23:34 GMT+01:00 John McWilliam <jsmcwill...@gmail.com>: > The situation is as follows. A pipe tune made up of two parts where each > part > is repeated once. The first part has an alternative ending when played the > second time. This appears on a shortened line of its own. The second part > also has an alternative ending when play the second time and this matches > the ending of the first part. > I have two problems with this both of which are, in a way, aesthetic but > irritating: > 1. I cannot close the second time volta. > 2. I cannot eliminate the barline which appears at the end of the shortened > second time line. > > -------------------------------------------------------------------------------------------- > > \version "2.18.0" > > > \score { > > \new Staff { > \time 3/4 %adjust time to suit specific tunes > \bar ".|:" > > % Part 1 > \set Score.repeatCommands = #'(start-repeat) > > \repeat unfold 4 {a4 a a} > > \set Score.repeatCommands = #'((volta "1")) > \repeat unfold 4 {a4 a a} > \break > > \set Score.repeatCommands = #'((volta #f) (volta "2. --1,2") > end-repeat) > \repeat unfold 4 {a4 a a} > \bar "||" > > \set Score.repeatCommands = #'((volta #f)) > \stopStaff > % Increasing the unfold counter will expand the staff-free space > \repeat unfold 6 { > s4 s4 s4 > } > % \once \hide Score.BarLine > \startStaff % Resume bar count and show staff lines again > \break > > % Part 2 > \set Score.repeatCommands = #'(start-repeat) > \repeat unfold 4 {a4 a a } > > \set Score.repeatCommands = #'((volta "1")) > \repeat unfold 4 {a4 a a } > \set Score.repeatCommands = #'((volta #f) end-repeat) > }%end staff > }%end score > > > > > ----- > John McWilliam > -- > View this message in context: > http://lilypond.1069038.n5.nabble.com/Shortened-line-containing-second-time-repeat-volta-has-problems-tp169174.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 >
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user