lilypond-user
[Top][All Lists]
Advanced

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

Re: Score numbering


From: Pierre Perol-Schneider
Subject: Re: Score numbering
Date: Sun, 2 Dec 2018 11:32:16 +0100

Hi Gianmaria,
I don't understand what  (add-score #{ \score { {c} \midi{}} #} ) stands for (copy/paste typo?)
Cheers,
Pierre



Le dim. 2 déc. 2018 à 00:04, Gianmaria Lari <address@hidden> a écrit :
>
>
>
> On Sat, 1 Dec 2018 at 16:55, <address@hidden> wrote:
>>
>> Hi,
>>
>> I'm creating a songbook using Lilypond the direct way, not via
>> lilypond-book, but entering several \score and \markup sections.
>> Is there an easy way to get automatic numbering of the scores in the
>> output?  I actually create each song by calling two Scheme functions to
>> factor out as much formatting as possible, so it's certainly possible to
>> include incrementing numbering there, but I'd like to check if there's a
>> built-in facility beforehand.  I'll go for automatic numbering of
>> additional verses (markups) then...
>
>
> Try to have a look to the following example:
>
> **************************************
> \version "2.19.82"
> #(define nextcount
>    (let  ((counter 0))
>      (add-score #{ \score { {c} \midi{}} #} )
>      (lambda ()
>        (set! counter (1+ counter))
>        (number->string counter))))
>
> mymusic = {
>   a b c' d'
> }
> \score {
>   \new Staff \with {instrumentName=\markup \circle #(nextcount)} \new Voice \mymusic
>   \layout{}
> }
>
> mymusic = {
>   c' d' e' f'
> }
> \score {
>   \new Staff \with {instrumentName=\markup \circle #(nextcount)} \new Voice \mymusic
>   \layout{}
> }
> ************************************
>
> Best regards, g.
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user

reply via email to

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