lilypond-devel
[Top][All Lists]
Advanced

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

Re: bar numbering howto?


From: Heikki Johannes Junes
Subject: Re: bar numbering howto?
Date: Fri, 13 Dec 2002 01:18:22 +0200 (EET)

> Instead, what one typically wants is bar numbering at 1, 5, 9, 13, ...
>

Even more accurately, at 5, 9, 13, 17, ...

A patch ...

$ cvs diff -u share/lilypond/scm/output-lib.scm
Index: share/lilypond/scm/output-lib.scm
===================================================================
RCS file: /cvsroot/lilypond/lilypond/scm/output-lib.scm,v
retrieving revision 1.26
diff -p -u -u -r1.26 output-lib.scm
--- share/lilypond/scm/output-lib.scm   13 Oct 2002 21:58:05 -0000
1.26
+++ share/lilypond/scm/output-lib.scm   12 Dec 2002 23:12:45 -0000
@@ -205,7 +205,7 @@ centered, X==1 is at the right, X == -1
          (string-encode-integer (quotient i 26))))))


-(define-public ((every-nth-bar-number-visible n) barnum) (= 0 (modulo barnum 
n)))
+(define-public ((every-nth-bar-number-visible n) barnum) (and (> barnum 1) (= 
1 (modulo barnum n))))

 (define-public (default-bar-number-visibility barnum) (> barnum 1))

---
hmm. It is also worth of knowing how to do these function by one's own.
Maybe there is an example lying somewhere.

      Heikki Junes



reply via email to

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