Valentin Villenave Friday, September 12, 2008 2:24 PM
2008/9/12 Trevor Daniels <[EMAIL PROTECTED]>:
Valentin

Are these worth a snippet (or two?) for Rhythms?

Isn't it a duplicate of http://lsr.dsi.unimi.it/LSR/Item?id=91 ?

Not quite.  Both the snippets I sent did the same thing,
ie, print bar numbers over the first bar and then
every n bars.  Snippet 91 doesn't deal with the first
bar, although I guess it could be easily modified to
do so.

The alternative is Neil's music function:

#(define ((first-and-every-nth-bar-number-visible n) barnum)
        (or
          (= 1 barnum)
          (= 0 (modulo barnum n))))

Oh, this could definitely worth a new snippet (IMO).

Although a music function is not really necessary to do
this, as the first snippet demonstrated.

Cheers,
Valentin

Trevor



_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to