|
From: | Gilles THIBAULT |
Subject: | Re: automatic numbers for examples |
Date: | Sat, 10 Jan 2009 23:23:38 +0100 |
\markup { example 1} \scoreOne \markup { example 2} \scoreTwo
With \markup , i don't know how, but using \piece, i had made for me something like that :
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #(define score-number 0) ex = #(define-music-function (parser location music) (ly:music?) (let* ((s (number->string (begin (set! score-number (1+ score-number)) score-number))) (h (make-module)) (m (ly:make-score #{ \new Staff $music #}))) (module-define! h 'piece (markup #:fontsize 2 "Example " #:fontsize 4 s )) (ly:score-set-header! m h) (collect-scores-for-book parser m) (make-music 'Music 'void #t))) %%% The music %%% \ex {a4 b c' d' e'1} \ex {e'4 d' c' b c'1} \ex {d'4 c' b c' a1} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%I use here some code given in this list by some others persons. Thanks to them.
Gilles
[Prev in Thread] | Current Thread | [Next in Thread] |