]> git.donarmstrong.com Git - lilypond.git/blob - ly/performer.ly
patch::: 1.3.35.jcn1
[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";
46         \consists "Span_dynamic_performer";
47         \consists "Grace_position_performer";
48         \accepts Thread;
49         \accepts Grace;
50 };
51 \translator { \VoiceContext }
52
53 GraceContext = \translator {
54         \type "Performer_group_performer";
55         \name Thread;
56         \consists "Note_performer";
57         \consists "Tie_performer";
58 };
59 \translator { \GraceContext }
60
61 \translator {
62         \type "Grace_performer_group";
63         \name Grace;
64         \consists "Note_performer";
65         \consists "Tie_performer";
66          weAreGraceContext = "1";
67 }
68
69 \translator
70 {
71         \type "Performer_group_performer";
72         \name VoiceTwo;\consists "Note_performer";
73
74 }
75
76 GrandStaffContext = \translator {
77         \type "Performer_group_performer";
78         \name GrandStaff;
79         \accepts Staff;
80 };
81 \translator { \GrandStaffContext }
82
83 PianoStaffContext = \translator {
84         \type "Performer_group_performer";
85         \name "PianoStaff";
86         \accepts Staff;
87 };
88 \translator { \PianoStaffContext }
89
90 \translator {
91         \type "Performer_group_performer";
92         \consists "Lyric_performer";
93         \name LyricVoice;
94 }
95
96 \translator{
97         \type "Performer_group_performer";
98         \name ChoirStaff;
99         \accepts Staff;
100 }
101 \translator { 
102         \type "Staff_performer";
103         \accepts LyricVoice;
104         \name Lyrics;
105         \consists "Time_signature_performer";
106         \consists "Tempo_performer";
107 }
108
109 \translator {
110         \type "Staff_performer";
111         \accepts ChordNameVoice;
112         \name ChordNames;
113 }
114
115 \translator {
116         \type Performer_group_performer;
117         \consists Note_performer;
118         \name ChordNameVoice;   
119 }
120
121 \translator {
122         \type Performer_group_performer;
123
124         \name StaffGroup;
125         \accepts Staff;
126 }
127
128 ScoreContext = \translator {
129         \type "Score_performer";
130
131         \name Score;
132         instrument = "bright acoustic";
133         \accepts Staff;
134         \accepts GrandStaff;
135         \accepts PianoStaff;
136         \accepts Lyrics; 
137         \accepts StaffGroup;
138         \accepts ChoirStaff;
139         \accepts ChordNames;
140         \consists "Swallow_performer";
141 };
142 \translator { \ScoreContext }
143