lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wrong alternative numbering when some are empty


From: David Wright
Subject: Re: Wrong alternative numbering when some are empty
Date: Wed, 5 Oct 2016 12:54:11 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

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] <
> address@hidden> 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.

Attachment: manual.ly
Description: Text document

Attachment: manual.pdf
Description: Adobe PDF document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]