lilypond-user
[Top][All Lists]
Advanced

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

Re: Surprising rendering order


From: Roman Stawski
Subject: Re: Surprising rendering order
Date: Fri, 8 Oct 2010 08:59:52 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

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





reply via email to

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