LEFT | RIGHT |
1 \version "2.19.80" | 1 \version "2.19.80" |
2 | 2 |
3 \header { | 3 \header { |
4 texidoc = "@code{\\context} finds a grandchild even when the parent also | 4 texidoc = "@code{\\context} finds a grandchild by type and ID even when |
5 matches. | 5 the parent also matches. |
6 @verbatim | 6 @verbatim |
7 StaffGroup | 7 StaffGroup A |
8 \ | 8 \ |
9 ChoirStaff (from here, find StaffGroup) | 9 StaffGroup B (from here, find StaffGroup A) |
10 \ | 10 \ |
11 ChoirStaff | 11 StaffGroup C |
12 \ | 12 \ |
13 StaffGroup (this is found) | 13 StaffGroup A (this is found) |
14 @end verbatim | 14 @end verbatim |
15 PASS should appear in the left margin." | 15 RESULT should appear in the left margin." |
16 } | 16 } |
17 | 17 |
18 \new StaffGroup << | 18 \new StaffGroup = "A" << |
19 \new ChoirStaff << | 19 \new StaffGroup = "B" << |
20 \new ChoirStaff << | 20 \new StaffGroup = "C" << |
21 \new StaffGroup \with { instrumentName = "FAIL" } << | 21 \new StaffGroup = "A" \with { instrumentName = "SOUGHT" } << |
22 \context Staff = "a" { s1 } | 22 \context Staff = "a" { s1 } |
23 >> | 23 >> |
24 >> | 24 >> |
25 \context StaffGroup << | 25 \context StaffGroup = "A" << |
26 %% This is expected to replace FAIL. | 26 %% This is expected to replace SOUGHT. |
27 \set StaffGroup.instrumentName = "PASS" | 27 \set StaffGroup.instrumentName = "RESULT" |
28 \context Staff = "a" { s1 } | 28 \context Staff = "a" { s1 } |
29 >> | 29 >> |
30 >> | 30 >> |
31 >> | 31 >> |
LEFT | RIGHT |