]> git.donarmstrong.com Git - lilypond.git/blob - ly/performer.ly
release: 1.1.61
[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 };
18 \translator { \StaffContext }
19
20 %% urg, why (needs praeludium-*.ly) these?
21 \translator
22 {
23         \type "Performer_group_performer";
24         \consists "Note_performer";
25          \name VoiceFour;
26 }
27
28 \translator
29 {
30         \type "Performer_group_performer";
31         \consists "Note_performer";
32         \name VoiceThree;
33 }
34 \translator {
35         \type "Performer_group_performer";
36         \consists "Note_performer";
37          \name VoiceOne;
38 }
39
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;
47 };
48 \translator { \VoiceContext }
49
50 GraceContext = \translator {
51         \type "Performer_group_performer";
52         \name Thread;
53         \consists "Note_performer";
54         \consists "Tie_performer";
55 };
56 \translator { \GraceContext }
57
58 \translator {
59         \type "Grace_performer_group";
60         \name Grace;
61         \consists "Note_performer";
62         \consists "Tie_performer";
63          weAreGraceContext = "1";
64 }
65
66 \translator
67 {
68         \type "Performer_group_performer";
69         \name VoiceTwo;\consists "Note_performer";
70
71 }
72
73 GrandStaffContext = \translator {
74         \type "Performer_group_performer";
75         \name GrandStaff;
76         \accepts Staff;
77 };
78 \translator { \GrandStaffContext }
79
80 PianoStaffContext = \translator {
81         \type "Performer_group_performer";
82         \name "PianoStaff";
83         \accepts Staff;
84 };
85 \translator { \PianoStaffContext }
86
87 \translator {
88         \type "Performer_group_performer";
89         \consists "Lyric_performer";
90         \name LyricVoice;
91 }
92
93 \translator{
94         \type "Performer_group_performer";
95         \name ChoirStaff;
96         \accepts Staff;
97 }
98 \translator { 
99         \type "Staff_performer";
100         \accepts LyricVoice;
101         \name Lyrics;
102         \consists "Time_signature_performer";
103         \consists "Tempo_performer";
104 }
105 \translator {
106         \type Performer_group_performer;
107
108         \name StaffGroup;
109         \accepts Staff;
110 }
111
112 ScoreContext = \translator {
113         \type "Score_performer";
114
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";
124 };
125 \translator { \ScoreContext }
126