I answer this email for the record.
It seems that there's an attempt to explain this better in the 2.13
manual than in the 2.12 manual, see
http://lilypond.org/doc/v2.13/Documentation/notation/Context-layout-order#Context-layout-order
and
http://lilypond.org/doc/v2.13/Documentation/notation/Aligning-contexts#Aligning-contexts,
but it still doesn't really answer your question.
The Staff contexts are ordered vertically in the order they are created.
The main Staff contexts in \violineA and \violineB are created at the
same musical moment (at the top of the piece), and in that case, the
order is determined by the order they appear in the \score{...} block in
your .ly file. However, the \context Staff = "Two" happens later
(musically) and is therefore created later so it appears at the bottom
of the system.
As you have figured out, this can be solved by specifying
alignAboveContext. An alternative is shown in the template A.4.1 SATB
vocal score in the Learning manual, which partly is described in
http://lilypond.org/doc/v2.13/Documentation/notation/Entering-lyrics#Working-with-lyrics-and-variables
/Mats
Stefan Thomas wrote:
Dear community,
I have a question, cocerning divisi (for strings).
Why is so order of the staves so stange?
Here is my snippet, excuse, please, the childish musical example:
\version "2.12.2"
violineA = \new Staff { \set Staff.instrumentName = "Violine 1" \set
Staff.shortInstrumentName="Vln. 1"
c'' 4 d'' e'' f'' g'' 2 g'' a'' 4 a'' a'' a'' g'' 1 \break
<< { a'' 4 a'' a'' a'' g'' 1 }
\context Staff = "Two" { a'' 4^\markup{pizz.} a'' a'' a'' g'' 1 }
>> %this staff is placed on the bottom, why?
}
violineB = \new Staff {
\set Staff.instrumentName = "Violine 2" \set
Staff.shortInstrumentName="Vln. 2"
c'' 4 b' c'' d'' e''2 e'' \repeat "unfold" 2 {f'' 4 f'' f'' f'' e''
1} }
\score { \new GrandStaff <<
\violineA
\violineB >> }
------------------------------------------------------------------------
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
=============================================
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: [email protected]
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user