lilypond-1.1.62
[lilypond.git] / ly / performer.ly
blobf98ea244f5b8f046daa50ad0a99545db9e56217a
2 % setup for Request->Element conversion. Guru-only
4 StaffContext = \translator {
5 \type "Staff_performer";
6 \name Staff;
7 \accepts Voice;
9 \accepts VoiceOne; % ugh.
10 \accepts VoiceTwo;
11 \accepts VoiceThree;
12 \accepts VoiceFour;
14 \consists "Key_performer";
15 \consists "Time_signature_performer";
16 \consists "Tempo_performer";
18 \translator { \StaffContext }
20 %% urg, why (needs praeludium-*.ly) these?
21 \translator
23 \type "Performer_group_performer";
24 \consists "Note_performer";
25 \name VoiceFour;
28 \translator
30 \type "Performer_group_performer";
31 \consists "Note_performer";
32 \name VoiceThree;
34 \translator {
35 \type "Performer_group_performer";
36 \consists "Note_performer";
37 \name VoiceOne;
40 VoiceContext = \translator {
41 \type "Performer_group_performer";
42 \name Voice;
43 % All notes fall to Grace if you leave Thread out (huh?)
44 \consists "Grace_position_performer";
45 \accepts Thread;
46 \accepts Grace;
48 \translator { \VoiceContext }
50 GraceContext = \translator {
51 \type "Performer_group_performer";
52 \name Thread;
53 \consists "Note_performer";
54 \consists "Tie_performer";
56 \translator { \GraceContext }
58 \translator {
59 \type "Grace_performer_group";
60 \name Grace;
61 \consists "Note_performer";
62 \consists "Tie_performer";
63 weAreGraceContext = "1";
66 \translator
68 \type "Performer_group_performer";
69 \name VoiceTwo;\consists "Note_performer";
73 GrandStaffContext = \translator {
74 \type "Performer_group_performer";
75 \name GrandStaff;
76 \accepts Staff;
78 \translator { \GrandStaffContext }
80 PianoStaffContext = \translator {
81 \type "Performer_group_performer";
82 \name "PianoStaff";
83 \accepts Staff;
85 \translator { \PianoStaffContext }
87 \translator {
88 \type "Performer_group_performer";
89 \consists "Lyric_performer";
90 \name LyricVoice;
93 \translator{
94 \type "Performer_group_performer";
95 \name ChoirStaff;
96 \accepts Staff;
98 \translator {
99 \type "Staff_performer";
100 \accepts LyricVoice;
101 \name Lyrics;
102 \consists "Time_signature_performer";
103 \consists "Tempo_performer";
105 \translator {
106 \type Performer_group_performer;
108 \name StaffGroup;
109 \accepts Staff;
112 ScoreContext = \translator {
113 \type "Score_performer";
115 \name Score;
116 instrument = "bright acoustic";
117 \accepts Staff;
118 \accepts GrandStaff;
119 \accepts PianoStaff;
120 \accepts Lyrics;
121 \accepts StaffGroup;
122 \accepts ChoirStaff;
123 \consists "Swallow_performer";
125 \translator { \ScoreContext }