Re: Wrong alternative numbering when some are empty

2016-10-05 Thread David Wright
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]
> > > 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


Re: Wrong alternative numbering when some are empty

2016-10-05 Thread tisimst
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=195159=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?

--
Abraham Lee




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Wrong-alternative-numbering-when-some-are-empty-tp195113p195161.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


Re: Wrong alternative numbering when some are empty

2016-10-05 Thread D'Arcy J.M. Cain
On Wed, 5 Oct 2016 16:24:28 +0200
Pierre Perol-Schneider  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.

Thanks.

-- 
D'Arcy J.M. Cain
Big Smoke Music
http://BigSmokeMusic.com/ IM:da...@vex.net

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Wrong alternative numbering when some are empty

2016-10-05 Thread Pierre Perol-Schneider
How about:

\relative {
  \clef F
  \mark \markup \italic "repeat 5 times"
  d1
  \repeat volta 5 {
g,1 g g g
c1 c g g
d'1 c g d'
%\mark \markup "alternative 1 should be 2 and alternative 3 should be
4"
  }
  \alternative {
% 1st repeat alternative
\set Score.repeatCommands = #'((volta "2."))
{ d1 d d d }
\set Score.repeatCommands = #'((volta "4."))
{ c1 c c c }
  }
  g1\fermata
  \bar "|."

}

P.

2016-10-05 16:07 GMT+02:00 D'Arcy J.M. Cain :

> On Wed, 5 Oct 2016 13:17:43 +0200
> Pierre Perol-Schneider  wrote:
> > Hi D'Arcy,
> > I'm not sure to understand what the empty measures stay for.
> > Could you provide us a handwritten pic showing the final result you're
> > looking for.
>
> Better yet, see the attached.  Here is a snippet from the source for
> that output.
>
>   \mark \markup \italic "repeat 5 times"
>   \repeat volta 5 {
>   g,1 g g g
>   c1 c g g
>   d'1 c g d'
>   \mark \markup "alternative 1 should be 2 and alternative 3 should be
>   4" }
>   \alternative {
> { }
> { d1 d d d }
> { }
> { c1 c c c }
> { }
>   }
>
>   g1\fermata
>   \bar "|."
>
> --
> D'Arcy J.M. Cain
> Big Smoke Music
> http://BigSmokeMusic.com/ IM:da...@vex.net
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Wrong alternative numbering when some are empty

2016-10-05 Thread D'Arcy J.M. Cain
On Wed, 5 Oct 2016 13:17:43 +0200
Pierre Perol-Schneider  wrote:
> Hi D'Arcy,
> I'm not sure to understand what the empty measures stay for.
> Could you provide us a handwritten pic showing the final result you're
> looking for.

Better yet, see the attached.  Here is a snippet from the source for
that output.

  \mark \markup \italic "repeat 5 times"
  \repeat volta 5 {
  g,1 g g g
  c1 c g g
  d'1 c g d'
  \mark \markup "alternative 1 should be 2 and alternative 3 should be
  4" }
  \alternative {
{ }
{ d1 d d d }
{ }
{ c1 c c c }
{ }
  }

  g1\fermata
  \bar "|."

-- 
D'Arcy J.M. Cain
Big Smoke Music
http://BigSmokeMusic.com/ IM:da...@vex.net
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Wrong alternative numbering when some are empty

2016-10-05 Thread Pierre Perol-Schneider
Hi D'Arcy,
I'm not sure to understand what the empty measures stay for.
Could you provide us a handwritten pic showing the final result you're
looking for.
Cheers,
Pierre

2016-10-04 5:45 GMT+02:00 D'Arcy J.M. Cain :

> On Mon, 3 Oct 2016 19:45:48 +0200
> Pierre Perol-Schneider  wrote:
> > Hi D'arcy,
> > Maybe this could help: http://lsr.di.unimi.it/LSR/Item?id=915
>
> I tried using this to explicitly number the alternatives but it messed
> up the score.  I can't do it exactly as shown because I have created
> includes that hide that part of the code.  In any case it seems really
> complex. Am I wrong in thinking that it should display the current
> alternative and not just the one after the last printed one?
>
>   \mark \markup \italic "repeat 4 times"
>   \repeat volta 4 {
> \BassVerseA
>   }
>   \alternative {
> { } % #1 empty so nothing prints
> { \BassBridge } % prints #1
> { } % this is #3 but it does not print
> { \BassVerseB } % prints #3
>   }
>
> The one that prints #3 should print #4.  It would almost make sense if
> it printed #2 if it wasn't counting the empties but printing #3
> suggests that it is counting them ultimately.
>
> --
> D'Arcy J.M. Cain
> Big Smoke Music
> http://BigSmokeMusic.com/ IM:da...@vex.net
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Wrong alternative numbering when some are empty

2016-10-03 Thread D'Arcy J.M. Cain
On Mon, 3 Oct 2016 19:45:48 +0200
Pierre Perol-Schneider  wrote:
> Hi D'arcy,
> Maybe this could help: http://lsr.di.unimi.it/LSR/Item?id=915

I tried using this to explicitly number the alternatives but it messed
up the score.  I can't do it exactly as shown because I have created
includes that hide that part of the code.  In any case it seems really
complex. Am I wrong in thinking that it should display the current
alternative and not just the one after the last printed one?  

  \mark \markup \italic "repeat 4 times"
  \repeat volta 4 {
\BassVerseA
  }
  \alternative {
{ } % #1 empty so nothing prints
{ \BassBridge } % prints #1
{ } % this is #3 but it does not print
{ \BassVerseB } % prints #3
  }

The one that prints #3 should print #4.  It would almost make sense if
it printed #2 if it wasn't counting the empties but printing #3
suggests that it is counting them ultimately.

-- 
D'Arcy J.M. Cain
Big Smoke Music
http://BigSmokeMusic.com/ IM:da...@vex.net

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Wrong alternative numbering when some are empty

2016-10-03 Thread Pierre Perol-Schneider
Hi D'arcy,
Maybe this could help: http://lsr.di.unimi.it/LSR/Item?id=915

Cheers,
Pierre

2016-10-03 18:20 GMT+02:00 D'Arcy J.M. Cain :

> This seems like a bug to me but perhaps someone can explain it.  I have
> a piece where the verse repeats nine times with verses 3 and 6 followed
> by an alternative.
>
>   \mark \markup \italic "repeat 9 times"
>   \repeat volta 9 {
> \BassVerseA
>   }
>   \alternative {
> { }
> { }
> { \BassBridge }
> { }
> { }
> { \BassVerseB }
> { }
> { }
> { }
>   }
>
>   \BassVerseC
>
> So I expect that it will show 3 for the bridge and 6 for verse B but it
> shows 1 for the bridge and 4 for verse B.
>
> I understand that I could move the last bar of the verse into the start
> of each alternative but that just makes the chart messy.
>
> Oddly enough it plays correctly.
>
> --
> D'Arcy J.M. Cain
> Big Smoke Music
> http://BigSmokeMusic.com/ IM:da...@vex.net
>
> ___
> 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


Wrong alternative numbering when some are empty

2016-10-03 Thread D'Arcy J.M. Cain
This seems like a bug to me but perhaps someone can explain it.  I have
a piece where the verse repeats nine times with verses 3 and 6 followed
by an alternative.

  \mark \markup \italic "repeat 9 times"
  \repeat volta 9 {
\BassVerseA
  }
  \alternative {
{ }
{ }
{ \BassBridge }
{ }
{ }
{ \BassVerseB }
{ }
{ }
{ }
  }

  \BassVerseC

So I expect that it will show 3 for the bridge and 6 for verse B but it
shows 1 for the bridge and 4 for verse B.

I understand that I could move the last bar of the verse into the start
of each alternative but that just makes the chart messy.

Oddly enough it plays correctly.

-- 
D'Arcy J.M. Cain
Big Smoke Music
http://BigSmokeMusic.com/ IM:da...@vex.net

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user