bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Center a number above a measure


From: Colin Hall
Subject: Re: Center a number above a measure
Date: Tue, 27 Mar 2012 23:18:25 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

On Mon, Mar 26, 2012 at 11:08:51PM +0000, Clément wrote:
> Hello,
> 
> I've encountered many limits when trying to put numbers above measures.

Thanks very much for the bug report, Clement.

I've had a look at the problems you reported. See my comments below.

> 1) I found no possibility to print number "1" above multi-measure rests.
> This is no crazy idea of mine, Breitkopf does it :
> http://erato.uvt.nl/files/imglnks/usimg/f/ff/IMSLP11706-Mozart-
> Horn_Concerto_No.1_horn_part.pdf

Looking at that horn part I only see the number "1" above single bar rests. So, 
does the following code meet your needs?

Documented here:
http://lilypond.org/doc/v2.14/Documentation/notation/writing-rests#full-measure-rests

{
  \set Staff.instrumentName = \markup \column { \line {With} \line {markup} }
  R1*1^\markup \huge \bold "1" | R1*1^\markup \huge \bold "1" | R1*1^\markup 
\huge \bold "1"
}



> 2) Printing numbers above measures is limited to multi-measure rests and 
> percent
> repeats.

Yes, I think you are correct.

> I have 3 requests:
> 1) The possibility to print number 1 above multi-measure rests (of course, it 
> should begin by default on number 2 (just as now) in the case of multi-staff 
> scores) and the first measure in the case percent repeats.

I think you can just attach markup to the rest, see above.

> 2) Extent of count-percent-repeat to other types of repeats such as unfold 
> (useless if the following function is implemented).

The reply from Thomas Morley will lead you to some suitable code which is 
credited to David Nalesnik.

I attach a copy that I have edited up to include something similar to your 
example.

> 3) A function which could print numbers or series of numbers above 
> measures, such as:
> I would like to have a function (implemented in Lilypond) which could print a 
> number above a measure, and why not series of numbers, for instance:
> \time 4/4 \numberedMeasure "1" c2 c | \numberedMeasure "5" c2 c | etc.
> or:
> \time 4/4 \startNumberedMeasures c2 c | c c | etc. | c c \stopNumberedMeasures
> or also:
> \time 4/4 \startNumberMeasures \repeat unfold 8 { c2 c } \stopNumberedMeasures

I'll add this as a feature request. The code from David would make a good 
starting point.

Cheers,
Colin.

--

Colin Hall

Attachment: count-number-test-03.ly
Description: Text document


reply via email to

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