]> git.donarmstrong.com Git - lilypond.git/blob - ly/performer-init.ly
3bc296fab1187716caa855f8c58f65ea417d49b9
[lilypond.git] / ly / performer-init.ly
1 \version "1.5.68"
2 %
3 % setup for Request->Element conversion. Guru-only
4 %
5 StaffContext = \translator {
6         \type "Staff_performer"
7         \name Staff
8         \accepts Voice
9
10         \consists "Key_performer"
11         \consists "Tempo_performer"
12         \consists "Time_signature_performer"
13
14 }
15 \translator { \StaffContext }
16 \translator { \StaffContext
17   \name RhythmicStaff
18 }
19
20
21 VoiceContext = \translator {
22         \type "Performer_group_performer"
23         \name Voice
24         \consists "Dynamic_performer"
25         \consists "Span_dynamic_performer"
26         \consists "Piano_pedal_performer"
27         \accepts "Thread"
28 }
29 \translator { \VoiceContext }
30
31 ThreadContext = \translator {
32         \type "Performer_group_performer"
33         \name Thread
34         \consists "Note_performer"
35         \consists "Tie_performer"
36 }
37 \translator { \ThreadContext }
38
39 % retain for compatibility reasons (FIXME: convert-ly)
40 \translator {
41         \type "Performer_group_performer"
42         \name Grace
43 }
44
45 \translator
46 {
47         \type "Performer_group_performer"
48         \name VoiceTwo\consists "Note_performer"
49
50 }
51
52 GrandStaffContext = \translator {
53         \type "Performer_group_performer"
54         \name GrandStaff
55         \accepts RhythmicStaff
56         \accepts Staff
57 }
58 \translator { \GrandStaffContext }
59
60 PianoStaffContext = \translator {
61         \type "Performer_group_performer"
62         \name "PianoStaff"
63         \accepts Staff
64 }
65 \translator { \PianoStaffContext }
66
67 \translator {
68         \type "Performer_group_performer"
69         \consists "Lyric_performer"
70         \name LyricsVoice
71 }
72
73 \translator{
74         \type "Performer_group_performer"
75         \name ChoirStaff
76         \accepts Staff
77 }
78 \translator { 
79         \type "Staff_performer"
80         \accepts LyricsVoice
81         \name Lyrics
82         \consists "Time_signature_performer"
83         \consists "Tempo_performer"
84 }
85
86 \translator {
87         \type "Staff_performer"
88         \accepts ChordNameVoice
89         \name ChordNames
90 }
91
92 \translator {
93         \type Performer_group_performer
94         \consists Note_performer
95         \name ChordNameVoice    
96 }
97
98 \translator {
99         \type Performer_group_performer
100
101         \name StaffGroup
102         \accepts Staff
103 }
104
105 ScoreContext = \translator {
106         \type "Score_performer"
107
108         \name Score
109         instrument = #"bright acoustic"
110         \accepts Staff
111         \accepts GrandStaff
112         \accepts PianoStaff
113         \accepts Lyrics 
114         \accepts StaffGroup
115         \accepts ChoirStaff
116         \accepts RhythmicStaff
117         \accepts ChordNames
118
119         \consists "Timing_translator"
120         \consists "Swallow_performer"
121         
122         dynamicAbsoluteVolumeFunction = #default-dynamic-absolute-volume
123         instrumentEqualizer = #default-instrument-equalizer
124 }
125 \translator { \ScoreContext }
126