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: Clément Ryder
Subject: Re: Center a number above a measure
Date: Wed, 28 Mar 2012 00:37:51 +0200

Hi,

Thanks for your answer !



Le 28 mars 2012 00:18, Colin Hall <address@hidden> a écrit :

>
> 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"
> }
>
>
I also need to use the fetaText font (to produce the correct style of
number), which makes the code even more complicated… just for one character
!
I think it would not be complicated to implement something like
“print-number-one = ##t”.


>
>
> > 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.
>

Which only “works” for multi-measure-rests, not for percent repeats…


>
> > 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.
>
>
Examples 1 & 3 don't center the text above the measure…
In all cases, numbers are printed too small…


>  > 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.
>

Thanks for adding it to the issue tracker ;)

Clément


reply via email to

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