Francisco Vila <paconet.org <at> gmail.com> writes:

> 
> 2010/10/7 Roman Stawski <roman <at> stawski.fr>:
> > In the snippet below, I'm trying to set up a simple numbering of the pieces.
> > This used to number the pieces in ascending order in version 2.12.[don't
recall].
> > But not any more...
> 
> The behavior is as if normal markups in music render in the expected
> order, but instrument names are in reverse order.  Here I attached
> counters to plain notes. ¡funny!

And raw markups are rendered in the correct order after the music but before
the instrument names

\version "2.13.34"

#(define sequence-number 0)
#(define-markup-command (score-sequence layout props) ()
 (set! sequence-number (+ sequence-number 1))
 (interpret-markup layout props
   (markup #:bold #:large (number->string sequence-number))))

\markup\score-sequence

\new Staff {
 \set Staff.instrumentName = \markup\score-sequence
 a'1^\markup\score-sequence
}

\markup\score-sequence

\new Staff {
 \set Staff.instrumentName = \markup\score-sequence
 b'1^\markup\score-sequence
}

\markup\score-sequence

\new Staff {
 \set Staff.instrumentName = \markup\score-sequence
 c''1^\markup\score-sequence
}

\markup\score-sequence



_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to