]> git.donarmstrong.com Git - lilypond.git/blob - ly/performer.ly
21ec1095f2f6efac7d1ad6389dc80bce2435d771
[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         \consists "Tempo_performer";
17         dynamicStyle = #"dynamic"
18 };
19 \translator { \StaffContext }
20
21 %% urg, why (needs praeludium-*.ly) these?
22 \translator
23 {
24         \type "Performer_group_performer";
25         \consists "Note_performer";
26          \name VoiceFour;
27 }
28
29 \translator
30 {
31         \type "Performer_group_performer";
32         \consists "Note_performer";
33         \name VoiceThree;
34 }
35 \translator {
36         \type "Performer_group_performer";
37         \consists "Note_performer";
38          \name VoiceOne;
39 }
40
41 VoiceContext = \translator {
42         \type "Performer_group_performer";
43         \name Voice;
44 % All notes fall to Grace if you leave Thread out (huh?)
45         \consists "Dynamic_performer";   % must come before text_engraver.
46         \consists "Grace_position_performer";
47         \accepts Thread;
48         \accepts Grace;
49 };
50 \translator { \VoiceContext }
51
52 GraceContext = \translator {
53         \type "Performer_group_performer";
54         \name Thread;
55         \consists "Note_performer";
56         \consists "Tie_performer";
57 };
58 \translator { \GraceContext }
59
60 \translator {
61         \type "Grace_performer_group";
62         \name Grace;
63         \consists "Note_performer";
64         \consists "Tie_performer";
65          weAreGraceContext = "1";
66 }
67
68 \translator
69 {
70         \type "Performer_group_performer";
71         \name VoiceTwo;\consists "Note_performer";
72
73 }
74
75 GrandStaffContext = \translator {
76         \type "Performer_group_performer";
77         \name GrandStaff;
78         \accepts Staff;
79 };
80 \translator { \GrandStaffContext }
81
82 PianoStaffContext = \translator {
83         \type "Performer_group_performer";
84         \name "PianoStaff";
85         \accepts Staff;
86 };
87 \translator { \PianoStaffContext }
88
89 \translator {
90         \type "Performer_group_performer";
91         \consists "Lyric_performer";
92         \name LyricVoice;
93 }
94
95 \translator{
96         \type "Performer_group_performer";
97         \name ChoirStaff;
98         \accepts Staff;
99 }
100 \translator { 
101         \type "Staff_performer";
102         \accepts LyricVoice;
103         \name Lyrics;
104         \consists "Time_signature_performer";
105         \consists "Tempo_performer";
106 }
107
108 \translator {
109         \type "Staff_performer";
110         \accepts ChordNameVoice;
111         \name ChordNames;
112 }
113
114 \translator {
115         \type Performer_group_performer;
116         \consists Note_performer;
117         \name ChordNameVoice;   
118 }
119
120 \translator {
121         \type Performer_group_performer;
122
123         \name StaffGroup;
124         \accepts Staff;
125 }
126
127 ScoreContext = \translator {
128         \type "Score_performer";
129
130         \name Score;
131         instrument = "bright acoustic";
132         \accepts Staff;
133         \accepts GrandStaff;
134         \accepts PianoStaff;
135         \accepts Lyrics; 
136         \accepts StaffGroup;
137         \accepts ChoirStaff;
138         \accepts ChordNames;
139         \consists "Swallow_performer";
140 };
141 \translator { \ScoreContext }
142