On Wed 05 Oct 2016 at 08:38:11 (-0700), tisimst wrote: > On Wed, Oct 5, 2016 at 9:33 AM, D'Arcy J.M. Cain-3 [via Lilypond] < > ml-node+s1069038n195159...@n5.nabble.com> wrote: > > > On Wed, 5 Oct 2016 16:24:28 +0200 > > Pierre Perol-Schneider <[hidden email] > > <http:///user/SendEmail.jtp?type=node&node=195159&i=0>> wrote: > > > How about: > > > [...] > > > \alternative { > > > % 1st repeat alternative > > > \set Score.repeatCommands = #'((volta "2.")) > > > { d1 d d d } > > > \set Score.repeatCommands = #'((volta "4.")) > > > { c1 c c c } > > > } > > > > That's works. Thanks. I had tried something similar but with the > > empty alternatives still there and that messed up the output pretty > > badly. I was surprised to find that this even played properly. > > > > Maybe I'm missing something, but which ending bar is for the 3rd repeat?
Ha. Looking at this thread I can't see any reason why the MIDI output should have any difficulty with the OP's first suggestion. It's obvious what's intended to be played: \BassVerseA \BassVerseA \BassVerseA \BassBridge \BassVerseA \BassVerseA \BassVerseA \BassVerseB \BassVerseA \BassVerseA \BassVerseA \BassVerseC However, when it comes to conventional notation, there's a problem. Rather like with Roman numerals, there's no zero/cipher/null in music notation. So for clarity, I think you have to strip a measure off the end of BassVerseA and use it to start all your repeats. Another problem is that LP only understands the idea of factorisation when applied to the first repeat, which it does by assuming that if there aren't enough alternatives to go round, the first one should be labelled (haven't checked the MIDI but I assume it's the same) to mop up the rest. (ie "If there are more repeats than there are alternat[iv]e endings, the earliest repeats are given the first alternative.") Factorising repeats 4&5 and 7&8 is not possible AFAIK. So to get the labelling you seem to want, you have to specify them manually. However, manual labelling then screws up the automatic labelling (again, AFAIK), but when you manually label the first repeat, LP inserts a :| barline at te start of the backet which has to be suppressed. So all in all the resulting code looks a mess, but there's no ambiguity to a performer. Note that the volta 14 is required (for whatever reason) to make sure all the alternatives are typeset. BTW Best leave the code in the OP for the MIDI! Cheers, David.
\relative { \mark \markup \italic "repeat 9 times" \repeat volta 14 { c''4 ^\markup { va } b a g f e d c c d e f \set Score.endRepeatType = "|" } \alternative { \set Score.repeatCommands = #'((volta "1, 2.")) { g a b c } \set Score.endRepeatType = ":|." \set Score.repeatCommands = #'((volta "3.")) { g a b c c ^\markup { brdg } a f g } \set Score.repeatCommands = #'((volta "4, 5.")) { g a b c } \set Score.repeatCommands = #'((volta "6.")) { g a b c c ^\markup { vb } a e g } \set Score.repeatCommands = #'((volta "7, 8.")) { g a b c } \set Score.repeatCommands = #'((volta "9.")) { g a b c } } c ^\markup { vc } g e c \bar "|." }
manual.pdf
Description: Adobe PDF document
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user