lilypond-user
[Top][All Lists]
Advanced

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

Re: Automatically numbering "instrument name"?


From: Manuela Gößnitzer
Subject: Re: Automatically numbering "instrument name"?
Date: Thu, 10 Aug 2017 08:41:24 +0200

 Hi Sam,

thank you for your feddback. My name is Manuela, I am female :-)


2017-08-09 21:00 GMT+02:00 Sam Bivens <address@hidden>:
Hi Manuel and Malte,

Thanks so much for the help; this is exactly what I was looking for!

Sam

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



reply via email to

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