]> git.donarmstrong.com Git - lilypond.git/blob - ly/performer.ly
release: 1.1.54
[lilypond.git] / ly / performer.ly
1 %
2 % setup for Request->Element conversion. Guru-only
3 %
4 StaffContext = \translator {
5         \type "Staff_performer";
6         \name Staff;
7         \accepts Voice;
8
9         \accepts VoiceOne;              % ugh.
10         \accepts VoiceTwo;
11         \accepts VoiceThree;
12         \accepts VoiceFour;
13
14         \consists "Key_performer";
15         \consists "Time_signature_performer";
16 };
17 \translator { \StaffContext }
18
19 %% urg, why (needs praeludium-*.ly) these?
20 \translator
21 {
22         \type "Performer_group_performer";
23         \consists "Note_performer";
24          \name VoiceFour;
25 }
26
27 \translator
28 {
29         \type "Performer_group_performer";
30         \consists "Note_performer";
31         \name VoiceThree;
32 }
33 \translator {
34         \type "Performer_group_performer";
35         \consists "Note_performer";
36          \name VoiceOne;
37 }
38
39 VoiceContext = \translator {
40         \type "Performer_group_performer";
41         \name Voice;
42 % All notes fall to Grace if you leave Thread out (huh?)
43         \consists "Grace_position_performer";
44         \accepts Thread;
45         \accepts Grace;
46 };
47 \translator { \VoiceContext }
48
49 GraceContext = \translator {
50         \type "Performer_group_performer";
51         \name Thread;
52         \consists "Note_performer";
53         \consists "Tie_performer";
54 };
55 \translator { \GraceContext }
56
57 \translator {
58         \type "Grace_performer_group";
59         \name Grace;
60         \consists "Note_performer";
61         \consists "Tie_performer";
62          weAreGraceContext = "1";
63 }
64
65 \translator
66 {
67         \type "Performer_group_performer";
68         \name VoiceTwo;\consists "Note_performer";
69
70 }
71
72 GrandStaffContext = \translator {
73         \type "Performer_group_performer";
74         \name GrandStaff;
75         \accepts Staff;
76 };
77 \translator { \GrandStaffContext }
78
79 PianoStaffContext = \translator {
80         \type "Performer_group_performer";
81         \name "PianoStaff";
82         \accepts Staff;
83 };
84 \translator { \PianoStaffContext }
85
86 \translator {
87         \type "Performer_group_performer";
88         \consists "Lyric_performer";
89         \name LyricVoice;
90 }
91
92 \translator{
93         \type "Performer_group_performer";
94         \name ChoirStaff;
95         \accepts Staff;
96 }
97 \translator { 
98         \type "Staff_performer";
99         \accepts LyricVoice;
100         \name Lyrics;
101         \consists "Time_signature_performer";
102 }
103 \translator {
104         \type Performer_group_performer;
105
106         \name StaffGroup;
107         \accepts Staff;
108 }
109
110 ScoreContext = \translator {
111         \type "Score_performer";
112
113         \name Score;
114         instrument = "bright acoustic";
115         \accepts Staff;
116         \accepts GrandStaff;
117         \accepts PianoStaff;
118         \accepts Lyrics; 
119         \accepts StaffGroup;
120         \accepts ChoirStaff;
121         \consists "Swallow_performer";
122 };
123 \translator { \ScoreContext }
124