|
From: | Manuela Gößnitzer |
Subject: | Re: Automatically numbering "instrument name"? |
Date: | Thu, 10 Aug 2017 08:41:24 +0200 |
SamHi Manuel and Malte,Thanks so much for the help; this is exactly what I was looking for!--On Wed, Aug 9, 2017 at 4:18 AM, Malte Meyn <address@hidden> wrote:
Am 09.08.2017 um 06:34 schrieb Manuela Gößnitzer:
Do you mean something like this?
#(define score-number 0) %% insert in first score
#(set! score-number (1+ score-number))
\new PianoStaff \with {
instrumentName = \markup {
#(number->string score-number) "."
}
}
\relative c'' { c }
You would have to do this set! before every score. Try the following instead:
\version "2.19.64"
#(define sn 0)
#(define (score-number)
(set! sn (1+ sn))
(string-append (number->string sn) "."))
\new Staff \with {
instrumentName = #(score-number)
} c'
\new Staff \with {
instrumentName = #(score-number)
} c'
\new Staff \with {
instrumentName = #(score-number)
} c'
\new Staff \with {
instrumentName = #(score-number)
} c'
\new Staff \with {
instrumentName = #(score-number)
} c'
_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user
Sam Bivens
Music Theory Faculty | Cleveland Institute of Music
Ph.D. Candidate | Eastman School of Music
Co-Editor, Intégral
_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user
[Prev in Thread] | Current Thread | [Next in Thread] |