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
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to