]> git.donarmstrong.com Git - lilypond.git/blob - input/bugs/shorthand-trickery.ly
patch::: 1.3.89.jcn1
[lilypond.git] / input / bugs / shorthand-trickery.ly
1 %
2 % Example of shorthand trickery 
3 % \property Context.foo = bar
4 %
5 foo = \property Staff.foo = #"bar"
6 %
7 %
8 %
9
10 one = \context Voice\notes\relative c {
11         a1 b c
12 }
13
14
15 two = \context Voice\notes {
16         a1\foo
17         b
18         < c\foo e >
19 }
20
21 \score{
22         \context OtherStaff=one <
23                 \one
24                 \two
25         >
26         \paper{
27                 \translator {
28                         \StaffContext
29                         \name "OtherStaff";
30                 }
31                 \translator {
32                         \ScoreContext
33                         \accepts "OtherStaff";
34                 }
35         }
36 }