[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Funny Bug or feature?. instrumentNames rendered in reverse order than mu
From: |
Francisco Vila |
Subject: |
Funny Bug or feature?. instrumentNames rendered in reverse order than music |
Date: |
Fri, 8 Oct 2010 10:37:20 +0200 |
Hello. This makes figures attached to notes to be printed in the
expected (ascending) order, but instrument names in reverse
(descending) order. Another exciting case later below.
\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))))
\new Staff {
\set Staff.instrumentName = \markup\score-sequence
a'1^\markup\score-sequence
}
\new Staff {
\set Staff.instrumentName = \markup\score-sequence
b'1^\markup\score-sequence
}
\new Staff {
\set Staff.instrumentName = \markup\score-sequence
c''1^\markup\score-sequence
}
===========
When the staves are into a group in a single score, the behavior
reverses. Last note or note markup renders first, and last instrument
name renders last.
\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))))
<< \new Staff { \set Staff.instrumentName = \markup\score-sequence
a'1^\markup\score-sequence }
\new Staff {
\set Staff.instrumentName = \markup\score-sequence
b'1^\markup\score-sequence }
\new Staff {
\set Staff.instrumentName = \markup\score-sequence
c''1^\markup\score-sequence }
>>
--
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com
- Funny Bug or feature?. instrumentNames rendered in reverse order than music,
Francisco Vila <=