Menu

#2059 Bar numbering of alternatives

Verified
nobody
Enhancement
2017-01-14
2011-11-28
Anonymous
No

Originally created by: *anonymous

Originally created by: colingh...@gmail.com
Originally owned by: mts...@gmail.com

Requested by Xavier Scheuer x.scheuer@gmail.com

This is by far the most popular enhancement request from the French
users mailing list: Bar numbering of repeat volta alternatives.

Currently LilyPond counts the measures of each "alternative" as
normal, unrepeated, measures hence incrementing the currentBarNumber
in both alternative "1." and "2.". Several references supports what is
actually asked by many users: bar numbering of alternatives should not
be counted twice.

\version "2.15.20"

\relative c' {
  \override Score.BarNumber #'break-visibility = #'#(#t #t #t)
  \repeat volta 2 {
    c1 |  % 1
    c1 |  % 2
    c1 |  % 3
  }
  \alternative {
    {
      c1 |  % currently: 4  % request: 4 or 4a
    }
    {
      c1 |  % currently: 5  % request: 4 or 4b !!
    }
  }
  \textLengthOn
  c1^"currently: 6  request: 5 !!" |  % currently: 6  % request: 5 !!
  \textLengthOff
  c1 |  % currently: 7  % request: 6
  % etc.
}

Please do not discard this (popular) request again.
I'd suggest to have at least the possibility to switch on this
feature, for example via a variable setting such as
\set barNumberAlternativeOnce = ##t

Well-know music publishing houses that use this numbering includes
Simrock, Breitkopf, Bärenreiter, Henle.

E.g. Henle et Breitkopf: |1. 34 | 35 :||2. 34 | 35 etc.,
Bärenreiter: |1. 34a | 35a :|| 2. 34b | 35b.

I do not know what say music engraving books like Ross, Read or Gould
but here is what says Jean-Pierre Coulon in his "Repository of
music-notation mistakes" or "Essay on the true art of music engraving":

"When first ending-second ending measures are present, measure numbers
of only the first ending measure act on the numbering. If necessary,
corresponding measure numbers have the subscripts a and b."

Section 5.4 page 9.
http://www.icking-music-archive.org/lists/sottisier/sottieng.pdf
http://www.icking-music-archive.org/lists/sottisier/sottisier.html

And here are some messages of users supporting this request.

lilypond-user-fr (in French):
http://lilypond-french-users.1298960.n2.nabble.com/Repetitions-volta-et-numeros-de-mesure-td7036772.html
http://lilypond-french-users.1298960.n2.nabble.com/numerotation-des-mesures-en-cas-de-reprise-avec-alternatives-td6936029.html
http://lilypond-french-users.1298960.n2.nabble.com/numeros-de-mesures-et-reprises-td5565647.html
http://lilypond-french-users.1298960.n2.nabble.com/Numeros-de-mesure-dans-1-et-2-td5227683.html
http://lilypond-french-users.1298960.n2.nabble.com/Numerotation-de-mesures-et-reprises-td4474721.html

lilypond-user:
http://lists.gnu.org/archive/html/lilypond-user/2009-07/msg00522.html
http://lists.gnu.org/archive/html/lilypond-user/2007-09/msg00096.html
http://lists.gnu.org/archive/html/lilypond-user/2006-09/msg00113.html

The implementation and what to do in the case of alternatives of
different measures duration are open to discussion.
But keep in mind that in 90% of the cases there are only 2 alternatives
which have the same measures duration.  In the remaining cases
the first alternative is often the shortest.

Thanks for your attention.

Cheers,
Xavier (and many French users)

Related

Issues: #5031

Discussion

  • Google Importer

    Google Importer - 2011-11-28

    Originally posted by: mts...@gmail.com

    Allows for automatic renumbering of measure numbers at volta repeats.

    http://codereview.appspot.com/5440049/

    Labels: Patch-new

     
  • Google Importer

    Google Importer - 2011-11-28

    Originally posted by: pkx1...@gmail.com

    Passes Make and make check just gives me

    --snip--

    /home/jlowe/lilypond-git/input/regression/display-lily-tests.log

    @@ -13,6 +13,9 @@
    Test 106 unequal: NOT A BUG.
    in  = \transpose c d { c d }
    out = { d e }
    +Test 111 unequal: .
    +in  = \repeat volta 2 { c4 d } \alternative { { c d } { e f } }
    +out = \repeat volta 2 { c4 d } \alternative { { %{ Print method not implemented for music type RenvoiMusic %} { c d } } { %{ Print method not implemented for music type RenvoiMusic %} { e f } %{ Print method not implemented for music type RenvoiMusic %} } }
    Test 125 unequal: NOT A BUG.
    in  = \oneVoice
    out = {

    --snip--

    So I think this is ok.

    Also does this imply some documentation - to show users how to use this feature (turn it on/off - whatever we decide the default is)?

    If so can we have a new tracker and a simple example I can then stick in somewhere.

    Labels: -Patch-new Patch-review
    Owner: mts...@gmail.com
    Status: Started

     
  • Google Importer

    Google Importer - 2011-11-29

    Originally posted by: dak@gnu.org

    The display-lily-tests.log output is a showstopper.  Without explicitly enabling this kind of functionality, we should not even be getting different music types.

    And I totally don't like "RenvoiMusic" for indicating a different variant (?) of repeat alternatives.  There is no reason whatsoever to introduce _French_ into our variable names when there is, as far as I know, no such French term in English music terminology (there is a host of Italian terms and the occasional German one).

    Anyway, because of the showstopper, I am putting the patch status back to needs_work.

    Labels: -Patch-review Patch-needs_work

     
  • Google Importer

    Google Importer - 2011-11-29

    Originally posted by: mts...@gmail.com

    Allows for automatic renumbering of measure numbers at volta repeats.

    http://codereview.appspot.com/5440049

    Labels: Patch-new

     
  • Google Importer

    Google Importer - 2011-11-29

    Originally posted by: mts...@gmail.com

    Allows for automatic renumbering of measure numbers at volta repeats.

    http://codereview.appspot.com/5440049

     
  • Google Importer

    Google Importer - 2011-11-29

    Originally posted by: pkx1...@gmail.com

    Passes Make and Make check

    James

    Labels: -Patch-new Patch-review

     
  • Google Importer

    Google Importer - 2011-11-29

    Originally posted by: colingh...@gmail.com

    Issue 785 has been merged into this issue.

     

    Related

    Issues: #785

  • Google Importer

    Google Importer - 2011-11-29

    Originally posted by: ColinPKC...@gmail.com

    (No comment was entered for this change.)

    Labels: -Patch-review Patch-countdown

     
  • Google Importer

    Google Importer - 2011-11-30

    Originally posted by: mts...@gmail.com

    Allows for automatic renumbering of measure numbers at volta repeats.

    http://codereview.appspot.com/5440049

    Labels: Patch-new

     
  • Google Importer

    Google Importer - 2011-12-01

    Originally posted by: pkx1...@gmail.com

    Passes make and make check

    James

    Labels: -Patch-new Patch-review

     
  • Google Importer

    Google Importer - 2011-12-01

    Originally posted by: ColinPKC...@gmail.com

    (No comment was entered for this change.)

    Labels: -Patch-review Patch-countdown

     
  • Google Importer

    Google Importer - 2011-12-04

    Originally posted by: ColinPKC...@gmail.com

    Counted down to 20111204

    Labels: -Patch-countdown Patch-push

     
  • Google Importer

    Google Importer - 2011-12-06

    Originally posted by: x.sche...@gmail.com

    The use of this

      \set Score.alternativeNumberingStyle = #'number

    or

      \set Score.alternativeNumberingStyle = #'numbers-with-letters

    deserves an explanation (as a snippet) in the notation reference,
    NR 1.4.1 Long repeats  and maybe a cross-reference in  NR 1.2.5 Bars >
    Bar numbers

    and this new feature deserves an entry in 'Documentation/changes.tely'
    IMHO

    Thank you!

    Xavier

     
  • Google Importer

    Google Importer - 2011-12-10

    Originally posted by: colingh...@gmail.com

    See new documentation issue 2093

     

    Related

    Issues: #2093

  • Google Importer

    Google Importer - 2011-12-11

    Originally posted by: ColinPKC...@gmail.com

    Per Neil and Mike's comments on Rietveld.

    Labels: -Patch-push Patch-needs_work

     
  • Google Importer

    Google Importer - 2011-12-30

    Originally posted by: x.sche...@gmail.com

    Hi,

    This has been pushed as  [r8d8982cc88ba1d0b20df5aff22b9555f76976a26]
    and Neil's comment were addressed by Mike in
    [r123b51c50a462b14d3cbffe2f354eaa8ec772dc2] , isn't it?

    This issue should be tagged as Fixed_2_15_21 (2_15_22 if you consider
    the second commit) and someone could verify it, IMHO.

     
  • Google Importer

    Google Importer - 2011-12-30

    Originally posted by: mts...@gmail.com

    Fixed (from Xavier: pushed as [r8d8982cc88ba1d0b20df5aff22b9555f76976a26] and Neil's comment were addressed by Mike in [r123b51c50a462b14d3cbffe2f354eaa8ec772dc2]).

    Status: Fixed

     
  • Google Importer

    Google Importer - 2011-12-31

    Originally posted by: PhilEHol...@googlemail.com

    (No comment was entered for this change.)

    Labels: -Patch-needs_work Fixed_2_15_24

     
  • Google Importer

    Google Importer - 2012-01-13

    Originally posted by: ma...@gregoriana.sk

    (No comment was entered for this change.)

    Status: Verified