Re: Center a number above a measure

2012-04-10 Thread David Nalesnik
Hi Colin,


 Thanks very much for that, David. I've updated the issue tracker with
 your post and your engraver.

 http://code.google.com/p/lilypond/issues/detail?id=2445



Thank you!
___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Center a number above a measure

2012-04-09 Thread David Nalesnik
Hi,

2012/3/28 Colin Hall colingh...@gmail.com


 On Wed, Mar 28, 2012 at 05:02:49PM +0100, James wrote:
  hello,
 
  2012/3/28 Clément Ryder themu...@gmail.com:
  ...etc.
 
  So it seems that this is really the enhancement request stated before
 
  http://code.google.com/p/lilypond/issues/detail?id=146 (if not
  exactly, in essence).

 Both enhancement requests are on the same general topic, which is
 automated counting of items (e.g. bars) in the music that are repeated.

 This recent request from Clement, as Xavier pointed out, calls for
 slightly more advanced features than the one which resulted in issue
 146.

  I just don't see any value in poo-pooing useful suggestions, (complex
  or otherwise), for a problem that we already know about and is not
  implemented 'elegantly' in the code.
 
  Eventually you just end up irritating people and they stop helping.

 Understood, but I'm ok with the comments. Xavier's suggestion of using
 that context property was a good one.

 In summary then:

 Lilypond does not have a feature for automated counting of arbitrary
 items. See issue trackers 2445 and 146 for more information.

 Code has been contributed for making a start on implementing this
 feature. See the issue trackers above.

 You can get a 1 above a single bar of full measure rest using this
 syntax:
 {
  \set restNumberThreshold = #0
  R1 | R1 | R1 |
 }

 Lilypond does not support counting the first item of a percent repeat.

 I hope Clement will prepare a simple documentation suggestion to make the
 role
 of restNumberThreshold clearer.

 Cheers,
 Colin.

 --

 Colin Hall

 ___
 bug-lilypond mailing list
 bug-lilypond@gnu.org
 https://lists.gnu.org/mailman/listinfo/bug-lilypond


I've come up with the following Scheme engraver which allows you to create
a counter above measures (whether they are associated with repeated music
or not). This should work in 2.14.2, too, provided that you adjust the
position of \measureCounterStart and \measureCounterEnd.

Basically, it creates spanners attached on both sides to a
NonMusicalPaperColumn. (Originally, I used BarLines--not sure which is the
better approach.) For the spanner, I've defined a new grob, MeasureCounter.

It would be nice to be able to control what prefatory items to consider
when centering (for example, between bars alone, between time signature and
clef change, etc.), but I have no idea how to proceed with this. (I believe
Harm's functions allow you this control. How to do this with an engraver?)

I acknowledge NoteColumns so that the number will move out of the way of
notes, but I can't figure out how to (gracefully) include only those
columns within a given measure--I'm getting the first note-column of the
next measure into my 'elements array. This, of course, messes with vertical
and horizontal positioning. Any thoughts?

Another problem is that the spacing between systems isn't adjusted.

Anyway, I hope that I'm on the right track with this, and I'd welcome any
feedback!

Thanks,
David

P.S.  I realize that the function define-event-class is problematic at the
moment . . .


measureCounterEngraver.ly
Description: Binary data
___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Center a number above a measure

2012-04-08 Thread David Nalesnik
Hi,

2012/3/28 Colin Hall colingh...@gmail.com


 On Wed, Mar 28, 2012 at 05:02:49PM +0100, James wrote:
  hello,
 
  2012/3/28 Clément Ryder themu...@gmail.com:
  ...etc.
 
  So it seems that this is really the enhancement request stated before
 
  http://code.google.com/p/lilypond/issues/detail?id=146 (if not
  exactly, in essence).

 Both enhancement requests are on the same general topic, which is
 automated counting of items (e.g. bars) in the music that are repeated.

 This recent request from Clement, as Xavier pointed out, calls for
 slightly more advanced features than the one which resulted in issue
 146.

  I just don't see any value in poo-pooing useful suggestions, (complex
  or otherwise), for a problem that we already know about and is not
  implemented 'elegantly' in the code.
 
  Eventually you just end up irritating people and they stop helping.

 Understood, but I'm ok with the comments. Xavier's suggestion of using
 that context property was a good one.

 In summary then:

 Lilypond does not have a feature for automated counting of arbitrary
 items. See issue trackers 2445 and 146 for more information.

 Code has been contributed for making a start on implementing this
 feature. See the issue trackers above.

 You can get a 1 above a single bar of full measure rest using this
 syntax:
 {
  \set restNumberThreshold = #0
  R1 | R1 | R1 |
 }

 Lilypond does not support counting the first item of a percent repeat.

 I hope Clement will prepare a simple documentation suggestion to make the
 role
 of restNumberThreshold clearer.

 Cheers,
 Colin.

 --

 Colin Hall

 ___
 bug-lilypond mailing list
 bug-lilypond@gnu.org
 https://lists.gnu.org/mailman/listinfo/bug-lilypond


I've come up with the following Scheme engraver which allows you to create
a counter above measures (whether they are associated with repeated music
or not). This should work in 2.14.2, too, provided that you adjust the
position of \measureCounterStart and \measureCounterEnd.

Basically, it creates spanners attached on both sides to a
NonMusicalPaperColumn. (Originally, I used BarLines--not sure which is the
better approach.) For the spanner, I've defined a new grob, MeasureCounter.

It would be nice to be able to control what prefatory items to consider
when centering (for example, between bars alone, between time signature and
clef change, etc.), but I have no idea how to proceed with this. (I believe
Harm's functions allow you this control. How to do this with an engraver?)

I acknowledge NoteColumns so that the number will move out of the way of
notes, but I can't figure out how to (gracefully) include only those
columns within a given measure--I'm getting the first note-column of the
next measure into my 'elements array. This, of course, messes with vertical
and horizontal positioning. Any thoughts?

Another problem is that the spacing between systems isn't adjusted.

Anyway, I hope that I'm on the right track with this, and I'd welcome any
feedback!

Thanks,
David

P.S.  I realize that the function define-event-class is problematic at the
moment . . .


measureCounterEngraver.ly
Description: Binary data
___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Center a number above a measure

2012-03-28 Thread Colin Hall

On Wed, Mar 28, 2012 at 12:59:00AM +0200, Xavier Scheuer wrote:
 On 28/03/2012, Colin Hall colingh...@gmail.com wrote:
 
  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
  }
 
 
 This is complicated and tricky, IMHO.

I agree.

 Why not use
 
   \set restNumberThreshold = #0

Yes, that's much better. Armed with that knowledge I dug up a couple of 
references:

http://lists.gnu.org/archive/html/lilypond-user/2011-12/msg00122.html

And it is documented here:
http://kainhofer.com/~lilypond/Documentation/notation/all-context-properties.html

Cheers,
Colin.

-- 

Colin Hall

___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Center a number above a measure

2012-03-28 Thread Clément Ryder
Hi,

Thanks for your answer !



Le 28 mars 2012 00:18, Colin Hall colingh...@gmail.com a écrit :


 On Mon, Mar 26, 2012 at 11:08:51PM +, 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
___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Center a number above a measure

2012-03-28 Thread Clément Ryder
Le 28 mars 2012 10:16, Colin Hall colingh...@gmail.com a écrit :


 On Wed, Mar 28, 2012 at 12:59:00AM +0200, Xavier Scheuer wrote:
  On 28/03/2012, Colin Hall colingh...@gmail.com wrote:
  
   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
   }
  
 
  This is complicated and tricky, IMHO.

 I agree.

  Why not use
 
\set restNumberThreshold = #0

 Yes, that's much better. Armed with that knowledge I dug up a couple of
 references:

 http://lists.gnu.org/archive/html/lilypond-user/2011-12/msg00122.html

 And it is documented here:

 http://kainhofer.com/~lilypond/Documentation/notation/all-context-properties.html


It should also be indicated in the section about multi-measure-rests
(1.2.2).
http://lilypond.org/doc/v2.14/Documentation/notation/writing-rests#full-measure-rests


 Cheers,
 Colin.

 --

 Colin Hall

___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Center a number above a measure

2012-03-28 Thread James
hello,

2012/3/28 Clément Ryder themu...@gmail.com:
...etc.

So it seems that this is really the enhancement request stated before

http://code.google.com/p/lilypond/issues/detail?id=146 (if not
exactly, in essence).

If not can you explain what is different so we can perhaps open an new
enhancement request?

People have given some workarounds which may or may not suit.

I just don't see any value in poo-pooing useful suggestions, (complex
or otherwise), for a problem that we already know about and is not
implemented 'elegantly' in the code.

Eventually you just end up irritating people and they stop helping.

If it is not the same as

http://code.google.com/p/lilypond/issues/detail?id=146 (if not
exactly, in essence).

Can you explain what is different so we can perhaps open an new
enhancement request?

regards

James

___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Center a number above a measure

2012-03-28 Thread Colin Hall

On Wed, Mar 28, 2012 at 11:38:09AM +0200, Clément Ryder wrote:
 Le 28 mars 2012 10:16, Colin Hall colingh...@gmail.com a écrit :
  On Wed, Mar 28, 2012 at 12:59:00AM +0200, Xavier Scheuer wrote:
   On 28/03/2012, Colin Hall colingh...@gmail.com wrote:
{
  \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
}
   
  
   This is complicated and tricky, IMHO.
 
  I agree.
 
   Why not use
  
 \set restNumberThreshold = #0
 
  Yes, that's much better. Armed with that knowledge I dug up a couple of
  references:
 
  http://lists.gnu.org/archive/html/lilypond-user/2011-12/msg00122.html
 
  http://kainhofer.com/~lilypond/Documentation/notation/all-context-properties.html
 
 It should also be indicated in the section about multi-measure-rests
 (1.2.2).
 http://lilypond.org/doc/v2.14/Documentation/notation/writing-rests#full-measure-rests

Agreed, Clement.

It would be really helpful if you could prepare a documentation
suggestion for this, as decribed here:

http://lilypond.org/doc/v2.15/Documentation/contributor/documentation-suggestions

Cheers,
Colin.

-- 

Colin Hall

___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Center a number above a measure

2012-03-28 Thread Colin Hall

On Wed, Mar 28, 2012 at 05:02:49PM +0100, James wrote:
 hello,
 
 2012/3/28 Clément Ryder themu...@gmail.com:
 ...etc.
 
 So it seems that this is really the enhancement request stated before
 
 http://code.google.com/p/lilypond/issues/detail?id=146 (if not
 exactly, in essence).

Both enhancement requests are on the same general topic, which is
automated counting of items (e.g. bars) in the music that are repeated.

This recent request from Clement, as Xavier pointed out, calls for
slightly more advanced features than the one which resulted in issue
146.

 I just don't see any value in poo-pooing useful suggestions, (complex
 or otherwise), for a problem that we already know about and is not
 implemented 'elegantly' in the code.
 
 Eventually you just end up irritating people and they stop helping.

Understood, but I'm ok with the comments. Xavier's suggestion of using
that context property was a good one.

In summary then:

Lilypond does not have a feature for automated counting of arbitrary
items. See issue trackers 2445 and 146 for more information.

Code has been contributed for making a start on implementing this
feature. See the issue trackers above.

You can get a 1 above a single bar of full measure rest using this syntax:
{
  \set restNumberThreshold = #0
  R1 | R1 | R1 |
}

Lilypond does not support counting the first item of a percent repeat.

I hope Clement will prepare a simple documentation suggestion to make the role
of restNumberThreshold clearer.

Cheers,
Colin.

-- 

Colin Hall

___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Center a number above a measure

2012-03-27 Thread Colin Hall

On Mon, Mar 26, 2012 at 11:08:51PM +, 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
\version 2.14.2

% Thanks to David Nalesnik

#(set-global-staff-size 20)

#(define (sort-by-X-coord sys grob-lst)
Arranges a list of grobs in ascending order by their X-coordinates
   (let* ((X-coord (lambda (x) (ly:grob-relative-coordinate x sys X)))
  (comparator (lambda (p q) ( (X-coord p) (X-coord q)
  
 (sort grob-lst comparator)))

#(define (find-bounding-grobs bar-line grob-lst)
   (let* ((sys (ly:grob-system bar-line))
  (X-coord (lambda (n) (ly:grob-relative-coordinate n sys X)))
  (bar-line-X (X-coord bar-line)))

  (define (helper lst)
(if (and ( (X-coord (car lst)) bar-line-X)
 ( (X-coord (cadr lst)) bar-line-X))
(cons (car lst) (cadr lst))
(if (null? (cddr lst))
(cons bar-line bar-line)
(helper (cdr lst)

  (helper grob-lst)))

#(define (read-out ls1 ls2 ls3 symbol)
Filters all elements of ls1 from ls2 and appends it to ls3
(set! ls3 (append ls3 (filter (lambda (x) (eq? (car ls1) (symbol x))) ls2)))
  (if (null? (cdr ls1))
  ls3
  (read-out (cdr ls1) ls2 ls3 symbol)))
  
#(define ((center-text-script x-offs) grob)
 (let* ((sys (ly:grob-system grob))
(elements-lst (ly:grob-array-list (ly:grob-object sys 
'all-elements)))
(grob-name (lambda (x) (assq-ref (ly:grob-property x 'meta) 'name)))
(X-extent (lambda (q) (ly:grob-extent q sys X)))
(lst-1 (filter (lambda (x) (eq? 'BarLine (grob-name x))) 
elements-lst))
(add (cdr (ly:grob-property (car lst-1) 'X-extent)))
  ;; Grobs to center between
(args (list 'BarLine 
'TimeSignature
'KeySignature
'KeyCancellation
'Clef))
(grob-lst (read-out args elements-lst '() grob-name)) 
(new-grob-lst (remove (lambda (x) (interval-empty? (X-extent x))) 
grob-lst))
(sorted-grob-lst (sort-by-X-coord sys new-grob-lst))
  ;; Bounds
(bounds (find-bounding-grobs grob sorted-grob-lst))
(left (cdr (X-extent (car bounds
(right (car (X-extent (cdr bounds

(basic-offset
  (- (average left right)
 (* -1 add)
 (interval-center (X-extent grob))
 (* -1 x-offs ;; End of Defs in let*
   ;; Calculation
 (ly:grob-translate-axis! grob basic-offset X)))

centerTextScriptOn = {
\override TextScript #'after-line-breaking = #(center-text-script 0)
}

centerTextScriptOff = {
\revert TextScript #'after-line-breaking
}

onceCenterTextScript =

Re: Center a number above a measure

2012-03-27 Thread Colin Hall
On Tue, Mar 27, 2012 at 11:18:20PM +0100, Colin Hall wrote:
 
 On Mon, Mar 26, 2012 at 11:08:51PM +, Clément wrote:
  Hello,
  
  I've encountered many limits when trying to put numbers above measures.
 
 Thanks very much for the bug report, Clement.
 
 
  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.

Here is the issue tracker for your enhancement request:

http://code.google.com/p/lilypond/issues/detail?id=2445

Cheers,
Colin.

-- 

Colin Hall

___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Center a number above a measure

2012-03-27 Thread Xavier Scheuer
On 28/03/2012, Colin Hall colingh...@gmail.com wrote:

 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
 }


This is complicated and tricky, IMHO.
Why not use

  \set restNumberThreshold = #0


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

As I said on the tracker (BTW, with the new lilypond-auto mailing list
should we send our comments as comments on the tracker (which would
be buried on lilypond-auto) or reply as a normal e-mail to
bug-lilypond?), this is an advanced version of issue #146 .
http://code.google.com/p/lilypond/issues/detail?id=146

Cheers,
Xavier

-- 
Xavier Scheuer x.sche...@gmail.com

___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Center a number above a measure

2012-03-26 Thread Clément
Hello,

I've encountered many limits when trying to put numbers above measures.

2 problems :

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

2) Printing numbers above measures is limited to multi-measure rests and percent
repeats. (In both cases, printing number 1 is impossible.)
Moreover, printing a number without printing the percent symbol is very 
complicated.
The current workaround in the documentation is insufficient.

http://img267.imageshack.us/img267/6287/ex1dp.png
My first example
 { la,-.\pp r la-. r \repeat unfold 7 {  la-. r la-. r } } { \override 
PercentRepeat #'transparent = ##t \repeat percent 8 {s2} } 

http://img20.imageshack.us/img20/8727/ex2f.png
The second one :
 { si\f)~si~si\~si\!~si~si~si\~si\! } { \override PercentRepeat 
#'transparent 
= ##t \repeat percent 8 { s4. } } 
(I can't use strict repeats on this one, as I must print 2 decrescendi.)

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.

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

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

(The possibility to modify some parameters such as alignment, size, padding 
etc. 
would be very nice.)


___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Center a number above a measure

2012-03-26 Thread Thomas Morley
Am 27. März 2012 01:08 schrieb Clément themu...@gmail.com:
 Hello,

 I've encountered many limits when trying to put numbers above measures.

 2 problems :

 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

 2) Printing numbers above measures is limited to multi-measure rests and 
 percent
 repeats. (In both cases, printing number 1 is impossible.)
 Moreover, printing a number without printing the percent symbol is very
 complicated.
 The current workaround in the documentation is insufficient.

 http://img267.imageshack.us/img267/6287/ex1dp.png
 My first example
  { la,-.\pp r la-. r \repeat unfold 7 {  la-. r la-. r } } { \override
 PercentRepeat #'transparent = ##t \repeat percent 8 {s2} } 

 http://img20.imageshack.us/img20/8727/ex2f.png
 The second one :
  { si\f)~si~si\~si\!~si~si~si\~si\! } { \override PercentRepeat
 #'transparent
 = ##t \repeat percent 8 { s4. } } 
 (I can't use strict repeats on this one, as I must print 2 decrescendi.)

 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.

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

 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

 (The possibility to modify some parameters such as alignment, size, padding 
 etc.
 would be very nice.)


 ___
 bug-lilypond mailing list
 bug-lilypond@gnu.org
 https://lists.gnu.org/mailman/listinfo/bug-lilypond

Hi,

perhaps this thread is of note:

http://old.nabble.com/%22counting-numbers%22-above-bars-called-with-%5Crepeat-unfold-td33181698.html#a33181698


Cheers,
  Harm

___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond