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