Re: Inital barnumber?
On 23-May-06, at 2:29 PM, Christian Conkle wrote: I'm working on what the Lilypond docs so nicely term a "musicological document" with lilypond-book excerpts from a Bach fugue. (fis minor from WTCI) I'm using \set Score.currentBarNumber to keep the bar numbering correct, and it would be nice to have Lilypond put a bar number at the beginning of the excerpt. Is this possible? I believe that this _is_ possible, but it is much more difficult than it should be. The docs say that barNumberVisibility (procedure) Procedure that takes an int and returns whether the corresponding bar number should be printed so if you wrote a procedure to return #t if the currentBarNumber was 1, it should work. I'm not certain how to go about writing such a procedure, though. I sent this email to -devel as well, as a feature request for a simple property (printFirstBarNumber ?) which does this. Cheers, - Graham ___ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel
Re: Inital barnumber?
Graham Percival wrote: On 23-May-06, at 2:29 PM, Christian Conkle wrote: I'm working on what the Lilypond docs so nicely term a "musicological document" with lilypond-book excerpts from a Bach fugue. (fis minor from WTCI) I'm using \set Score.currentBarNumber to keep the bar numbering correct, and it would be nice to have Lilypond put a bar number at the beginning of the excerpt. Is this possible? I believe that this _is_ possible, but it is much more difficult than it should be. The docs say that barNumberVisibility (procedure) Procedure that takes an int and returns whether the corresponding bar number should be printed so if you wrote a procedure to return #t if the currentBarNumber was 1, it should work. I'm not certain how to go about writing such a procedure, though. I sent this email to -devel as well, as a feature request for a simple property (printFirstBarNumber ?) which does this. Cheers, - Graham See this message: http://lists.gnu.org/archive/html/lilypond-user/2005-09/msg00662.html (This applied to the 2.7 codebase; I hope it still works.) ___ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel
Re: Inital barnumber?
On 25-May-06, at 9:27 AM, Daniel Johnson wrote: Graham Percival wrote: On 23-May-06, at 2:29 PM, Christian Conkle wrote: I'm working on what the Lilypond docs so nicely term a "musicological document" with lilypond-book excerpts from a Bach fugue. (fis minor from WTCI) I'm using \set Score.currentBarNumber to keep the bar numbering correct, and it would be nice to have Lilypond put a bar number at the beginning of the excerpt. Is this possible? See this message: http://lists.gnu.org/archive/html/lilypond-user/2005-09/msg00662.html Excellent! This works, although it displays a warning: { \bar "" \set Score.currentBarNumber = #53 c4 c c c c c c c } I'll add this to the docs; it's not at all obvious to me that there isn't a bar line at the beginning of a piece. Cheers, - Graham ___ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel