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