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: Pierre Perol-Schneider
Subject: Re: Wrong alternative numbering when some are empty
Date: Wed, 5 Oct 2016 16:24:28 +0200

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 <address@hidden>:
On Wed, 5 Oct 2016 13:17:43 +0200
Pierre Perol-Schneider <address@hiddencom> 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:address@hidden


reply via email to

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