%
% setup for Request->Element conversion. Guru-only
%
-\translator {
+StaffContext = \translator {
\type "Staff_performer";
- \accepts Voice;
\name Staff;
+ \accepts Voice;
+
\consists "Key_performer";
\consists "Time_signature_performer";
+ \consists "Tempo_performer";
+ dynamicStyle = #"dynamic"
+};
+\translator { \StaffContext }
+\translator { \StaffContext
+ \name RhythmicStaff;
}
-\translator
-{
+
+VoiceContext = \translator {
+ \type "Performer_group_performer";
+ \name Voice;
+% All notes fall to Grace if you leave Thread out (huh?)
+ \consists "Dynamic_performer";
+ \consists "Span_dynamic_performer";
+ \consists "Piano_pedal_performer";
+ \consists "Grace_position_performer";
+ \accepts Thread;
+ \accepts Grace;
+};
+\translator { \VoiceContext }
+
+ThreadContext = \translator {
\type "Performer_group_performer";
- \name Thread ;
+ \name Thread;
\consists "Note_performer";
+ \consists "Tie_performer";
+};
+\translator { \ThreadContext }
+
+\translator {
+ \type "Grace_performer_group";
+ \name Grace;
+ \consists "Note_performer";
+ \consists "Tie_performer";
+ weAreGraceContext = "1";
}
+
\translator
{
\type "Performer_group_performer";
- \accepts Thread;
-\name Voice;
+ \name VoiceTwo;\consists "Note_performer";
+
}
-\translator
-{
+
+GrandStaffContext = \translator {
\type "Performer_group_performer";
+ \name GrandStaff;
+ \accepts RhythmicStaff;
\accepts Staff;
+};
+\translator { \GrandStaffContext }
-\name GrandStaff;}
+PianoStaffContext = \translator {
+ \type "Performer_group_performer";
+ \name "PianoStaff";
+ \accepts Staff;
+};
+\translator { \PianoStaffContext }
\translator {
\type "Performer_group_performer";
\consists "Lyric_performer";
-\name LyricVoice;
+ \name LyricVoice;
}
\translator{
\accepts LyricVoice;
\name Lyrics;
\consists "Time_signature_performer";
+ \consists "Tempo_performer";
}
-\translator
-{
+
+\translator {
+ \type "Staff_performer";
+ \accepts ChordNameVoice;
+ \name ChordNames;
+}
+
+\translator {
+ \type Performer_group_performer;
+ \consists Note_performer;
+ \name ChordNameVoice;
+}
+
+\translator {
\type Performer_group_performer;
\name StaffGroup;
\accepts Staff;
}
-\translator {
- \type "Score_performer";
+ScoreContext = \translator {
+ \type "Score_performer";
\name Score;
- instrument = piano;
+ instrument = "bright acoustic";
\accepts Staff;
\accepts GrandStaff;
+ \accepts PianoStaff;
\accepts Lyrics;
\accepts StaffGroup;
\accepts ChoirStaff;
+ \accepts RhythmicStaff;
+ \accepts ChordNames;
\consists "Swallow_performer";
-}
+
+ dynamicAbsoluteVolumeFunction = #default-dynamic-absolute-volume
+ instrumentEqualizer = #default-instrument-equaliser
+};
+\translator { \ScoreContext }