Quoting s.p.korzil...@gmail.com (s.p.korzil...@gmail.com): > I’m trying to write a piece that has repeats with alternatives. It seems that > “ > \repeat volta 2” is the way to go with supplying the alternatives in “\ > alternative”. However, this seems to work only for alternative endings, while > I > have alternative middle parts.
Hi again, thanks to http://lists.gnu.org/archive/html/lilypond-user/2015-10/msg00399.html I can now close the volta bracket with this undocumented feature, \allowVoltaHook, thus avoiding inkscape postprocessing. Be aware, however, that \allowVoltaHook is global and unresettable, at least at the level of \score. (I don't use \book myself.) I've also tidied up the code I sent previously, getting rid of the warning by removing the redundant (volta #f). Staff, \score and \time are also not required as they only redefine the defaults. Score.VoltaBracket.shorten-pair might be useful too. I've tried to indicate that the barlines both *terminate* the alternative part- measures by shifting the hooks. (I'm not convinced that part-measures are a good idea, but that's not my call.) Cheers, David.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \version "2.18.2" \paper { #(set-paper-size "a5") } \header { tagline = ##f } \allowVoltaHook "|" { a'8 b' c' e' c'2 | a'4 b' \once \override Score.VoltaBracket.shorten-pair = #'(0.3 . -0.4) \set Score.repeatCommands = #'((volta "1.")) d' g' | \once \override Score.VoltaBracket.shorten-pair = #'(0.7 . -0.5) \set Score.repeatCommands = #'((volta #f) (volta "2.")) \set Timing.measureLength = #(ly:make-moment 2/4) d'8 e' f' g' | \set Score.repeatCommands = #'((volta #f)) \set Timing.measureLength = #(ly:make-moment 4/4) d''4 c'' b' a' | a'4 b' c'' d'' \bar ":|." | } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
stan-sol.pdf
Description: Adobe PDF document
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user