[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Printing first and every n bar numbers
From: |
Trevor Daniels |
Subject: |
Re: Printing first and every n bar numbers |
Date: |
Fri, 12 Sep 2008 14:55:57 +0100 |
Valentin Villenave Friday, September 12, 2008 2:24 PM
2008/9/12 Trevor Daniels <address@hidden>:
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