lilypond-1.5.9
authorfred <fred>
Wed, 27 Mar 2002 02:02:47 +0000 (02:02 +0000)
committerfred <fred>
Wed, 27 Mar 2002 02:02:47 +0000 (02:02 +0000)
ly/performer-init.ly [new file with mode: 0644]

diff --git a/ly/performer-init.ly b/ly/performer-init.ly
new file mode 100644 (file)
index 0000000..97c6638
--- /dev/null
@@ -0,0 +1,124 @@
+\version "1.3.146"
+%
+% setup for Request->Element conversion. Guru-only
+%
+StaffContext = \translator {
+       \type "Staff_performer"
+       \name Staff
+       \accepts Voice
+
+       \consists "Key_performer"
+       \consists "Tempo_performer"
+       \consists "Time_signature_performer"
+       dynamicStyle = #"dynamic"
+}
+\translator { \StaffContext }
+\translator { \StaffContext
+  \name RhythmicStaff
+}
+
+
+VoiceContext = \translator {
+       \type "Performer_group_performer"
+       \name Voice
+       \consists "Dynamic_performer"
+       \consists "Span_dynamic_performer"
+       \consists "Piano_pedal_performer"
+       \accepts "Thread"
+}
+\translator { \VoiceContext }
+
+ThreadContext = \translator {
+       \type "Performer_group_performer"
+       \name Thread
+       \consists "Note_performer"
+       \consists "Tie_performer"
+}
+\translator { \ThreadContext }
+
+% retain for compatibility reasons (FIXME: convert-ly)
+\translator {
+       \type "Performer_group_performer"
+       \name Grace
+}
+
+\translator
+{
+       \type "Performer_group_performer"
+       \name VoiceTwo\consists "Note_performer"
+
+}
+
+GrandStaffContext = \translator {
+       \type "Performer_group_performer"
+       \name GrandStaff
+       \accepts RhythmicStaff
+       \accepts Staff
+}
+\translator { \GrandStaffContext }
+
+PianoStaffContext = \translator {
+        \type "Performer_group_performer"
+       \name "PianoStaff"
+       \accepts Staff
+}
+\translator { \PianoStaffContext }
+
+\translator {
+       \type "Performer_group_performer"
+       \consists "Lyric_performer"
+       \name LyricsVoice
+}
+
+\translator{
+       \type "Performer_group_performer"
+       \name ChoirStaff
+       \accepts Staff
+}
+\translator { 
+       \type "Staff_performer"
+       \accepts LyricsVoice
+       \name Lyrics
+       \consists "Time_signature_performer"
+       \consists "Tempo_performer"
+}
+
+\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
+}
+
+ScoreContext = \translator {
+       \type "Score_performer"
+
+       \name Score
+       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-equalizer
+}
+\translator { \ScoreContext }
+