Menu

#3146 \repeat percent is limited to 2 measures

Accepted
nobody
None
Enhancement
2015-09-25
2013-01-28
Anonymous
No

Originally created by: *anonymous

Originally created by: Elu...@gmail.com

Jim Long reports a bug with \repeat Percent when applied to multi measure rests longer than to bars. http://lilypond.1069038.n5.nabble.com/repeat-percent-crashes-on-longer-music-expressions-td140193.html

- an improved error message would be helpful
- can this function be enhanced to work with more - up to 4 - bars
- the doc should describe this limitation more clearly

example code:

:::TeX
\repeat percent 4 { R1*4 }  

produces:

Parsing...
Interpreting music.../usr/local/share/lilypond/2.16.1/scm/music-functions.scm:318:21: In procedure car in expression (car durs):
/usr/local/share/lilypond/2.16.1/scm/music-functions.scm:318:21: Wrong type (expecting pair): ()

Discussion

  • Google Importer

    Google Importer - 2013-04-05

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

    In 2.16.2 the error message seems to be gone, but the repeat sign is engraved in the first bar of the repeat and not in the middle of the repeated section like one would expect it to be.

     
  • Google Importer

    Google Importer - 2013-04-11

    Originally posted by: tdanielsmusic

    The correct response to this bug report would be to generate
    an error message if more than two bars of music are provided.
    Repeated bars (percent repeats in LilyPond) should be used
    only to repeat one or two whole bars of music.  If longer
    sections are to be repeated, repeat barlines should be used.
    See Gould, pp 231-233.

    Trevor
     

     
  • Google Importer

    Google Importer - 2013-04-11

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

    Regarding #2: I find Gould's opinion debatable and too focused on classical music.  Just imagine four 2/4 bars with four half notes.  IMHO it's easier for the eye if I can follow the numbers 1, 2, 3, 4, etc. (written over the repeat symbol), instead of looking at a repeat section where I have to count the number of repeats in my head.

     
  • Google Importer

    Google Importer - 2013-04-11

    Originally posted by: tdanielsmusic

    Re comment 3:
    If one bar is to be repeated the percent repeat sign is placed in the
    centre of the repeated bars; if a two-bar section is to be repeated the
    percent repeat sign (with two bars) is placed on the bar line between
    each of the pair of repeated bars.  How would you indicate the repeated
    4-bar section?  Do you have a scanned example?

    Trevor

     
  • Google Importer

    Google Importer - 2013-04-11

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

    Here is an example from The Beatles Complete Scores. It shows a percent sign with four slashs and the digit 4 above it between bars 2 and 3, but I think the 4 is neither a good idea – because of the confusion with a possible repeat counter – nor is it necessary. If it has to be four slashs or could also have just two like the DoublePercentRepeat, I don’t know. I only had thought of two slashs, but maybe four aren’t a bad idea.

    The example also makes clear that it’s not always possible to use repeat barlines for four-bar repeats. And using a “\repeat unfold” there wouldn’t be as convenient.

     
  • Trevor Daniels

    Trevor Daniels - 2015-09-25
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -10,8 +10,10 @@
    
     example code: 
    
    -\repeat percent 4 \{ [r1]\*4 \} 
    -
    +~~~~
    +:::TeX
    +\repeat percent 4 { R1*4 }  
    +~~~~
     produces:
    
     Parsing... 
    
    • Needs: -->
    • Patch: -->
     
  • Trevor Daniels

    Trevor Daniels - 2015-09-25
     
MongoDB Logo MongoDB