Hi John,
2014-12-04 15:13 GMT+01:00 John McWilliam <jsmcwill...@gmail.com>:
> 1. The repeat sign at the beginning of the second part is coded but does
> not
> appear.
>
Because of : \once \hide Score.BarLine
> 2. If you have time could you explain your corrections to my code. I
> understand the "allow-volta-hook"
> but why did the barline at the end of line two appear and have to be
> hidden.
>
It is just an option. It does not have to be there.
Lastly, why did the
> repeat sign at the beginning of line three disappear.
>
Same as point 1.
See attached files,
Cheers,
Pierre
\version "2.18.0"
#(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))
%% instead of \once \hide Score.BarLine :
\override Score.BarLine.break-visibility = #end-of-line-invisible
\stopStaff
% Increasing the unfold counter will expand the staff-free space
\repeat unfold 6 { s4 s4 s4 }
\break
\startStaff % Resume bar count and show staff lines again
% Part 2
\set Score.repeatCommands = #'(start-repeat)
\repeat unfold 4 { a4 a a }
\revert Score.BarLine.break-visibility
\set Score.repeatCommands = #'((volta "1"))
\repeat unfold 4 {a4 a a }
\set Score.repeatCommands = #'((volta #f) end-repeat)
}%end staff
}%end score
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user