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