Here's what I ended up using, and it works fine:

\version "2.16.0"

\relative c' {
  \set Score.barNumberVisibility = #(lambda (bar-number measure-position) #t)
  \time 4/4
  \repeat volta 2 {
    c d e
  }
  \break f | g a b
}

\paper { ragged-right = ##t }

This is essentially Mark's solution, except that (a) I didn't use the \once 
command, and (b) I didn't have to adjust the barNumberFormatter property 
because the parentheses appeared by default.

I have absolutely no programming experience and don't understand Scheme at all, 
so I never would have figured out this syntax by myself; perhaps it should be 
included in the NR somewhere? 

DR


-----Original Message-----
From: Janek Warchoł [mailto:janek.lilyp...@gmail.com] 
Sent: Friday, October 19, 2012 8:19 AM
To: Daniel Rosen
Cc: lilypond-user@gnu.org
Subject: Re: Bar numbers for broken measures

Hi,

On Fri, Oct 19, 2012 at 2:52 AM, Daniel Rosen <drose...@gmail.com> wrote:
> The piece I'm working on has a repeat that ends in the middle of a measure, 
> with a line break at the same point:
>
> I would like to have a bar number, perhaps in parentheses, at the 
> beginning of the second line,

sorry, no time to analyze this carefully, but according to this
http://code.google.com/p/lilypond/issues/detail?id=460 Lilypond should have 
this feature available.  If it doesn't work, please report a bug.

cheers,
janek
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to