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