-\version "1.9.1"
+\version "2.1.19"
-%
-% setup for Request->Element conversion. Guru-only
-%
-StaffContext = \translator {
- \type "Staff_performer"
- \name Staff
- \accepts Voice
+ %
+ % setup for Request->Element conversion. Guru-only
+ %
+\translator {
+ \type "Staff_performer"
+ \name Staff
+ \accepts Voice
- \consists "Key_performer"
- \consists "Tempo_performer"
- \consists "Time_signature_performer"
+ \consists "Key_performer"
+ \consists "Tempo_performer"
+ \consists "Time_signature_performer"
}
-
-VoiceContext = \translator {
- \type "Performer_group_performer"
- \name Voice
- \consists "Dynamic_performer"
- \consists "Span_dynamic_performer"
- \consists "Tie_performer"
- \consists "Piano_pedal_performer"
- \accepts "Thread"
+\translator {
+ \StaffContext
+ \name DrumStaff
+ midiInstrument = #"drums"
+ \accepts DrumVoice
}
-ThreadContext = \translator {
- \type "Performer_group_performer"
- \name Thread
- \consists "Note_performer"
+\translator {
+ \type "Performer_group_performer"
+ \name Voice
+ \consists "Dynamic_performer"
+ \consists "Span_dynamic_performer"
+ \consists "Tie_performer"
+ \consists "Piano_pedal_performer"
}
-FiguredBassContext = \translator {
- \type "Performer_group_performer"
- \name FiguredBass
- \consists "Swallow_performer"
+\translator {
+ \VoiceContext
+ \remove "Note_performer"
+ \consists "Drum_note_performer"
+ \name DrumVoice
}
-GrandStaffContext = \translator {
- \type "Performer_group_performer"
- \name GrandStaff
- \accepts RhythmicStaff
- \accepts Staff
+\translator {
+ \type "Performer_group_performer"
+ \name Voice
+ \consists "Note_performer"
+ \consists "Beam_performer"
+ \consists "Melisma_performer"
}
-PianoStaffContext = \translator {
- \type "Performer_group_performer"
- \name "PianoStaff"
- \accepts Staff
+\translator {
+ \type "Performer_group_performer"
+ \name FiguredBass
+ \consists "Swallow_performer"
}
-TabVoiceContext = \translator {
- \type "Performer_group_performer"
- \name "TabVoice"
- \consists "Swallow_performer"
+\translator {
+ \type "Performer_group_performer"
+ \name GrandStaff
+ \accepts RhythmicStaff
+ \accepts Staff
}
-TabStaffContext = \translator {
- \type "Performer_group_performer"
- \name "TabStaff"
- \accepts "TabVoice"
+\translator {
+ \type "Performer_group_performer"
+ \name "PianoStaff"
+ \accepts Staff
+ \accepts DrumStaff
}
-ScoreContext = \translator {
- \type "Score_performer"
+\translator {
+ \type "Performer_group_performer"
+ \name "TabVoice"
+ \consists "Swallow_performer"
+}
- \name Score
- \alias Timing
- instrument = #"bright acoustic"
- \accepts Staff
- \accepts GrandStaff
- \accepts PianoStaff
- \accepts TabStaff
- \accepts Lyrics
- \accepts StaffGroup
- \accepts ChoirStaff
- \accepts RhythmicStaff
- \accepts ChordNames
- \accepts FiguredBass
+\translator {
+ \type "Performer_group_performer"
+ \name "Devnull"
+ \consists "Swallow_performer"
+}
+\translator {
+ \type "Performer_group_performer"
+ \name "TabStaff"
+ \accepts "TabVoice"
+}
- \alias "Timing"
- \consists "Timing_translator"
- \consists "Swallow_performer"
-
- dynamicAbsoluteVolumeFunction = #default-dynamic-absolute-volume
- instrumentEqualizer = #default-instrument-equalizer
+\translator {
+ \type "Score_performer"
+
+ \name Score
+ \alias Timing
+ melismaBusyProperties = #default-melisma-properties
+ instrument = #"bright acoustic"
+ \accepts Staff
+ \accepts DrumStaff
+ \accepts GrandStaff
+ \accepts PianoStaff
+ \accepts TabStaff
+ \accepts Staff
+ \accepts StaffGroup
+ \accepts Devnull
+ \accepts ChoirStaff
+ \accepts RhythmicStaff
+ \accepts ChordNames
+ \accepts FiguredBass
+ \accepts LyricsVoice
+ \alias "Timing"
+ \consists "Timing_translator"
+ \consists "Swallow_performer"
+
+ dynamicAbsoluteVolumeFunction = #default-dynamic-absolute-volume
+ instrumentEqualizer = #default-instrument-equalizer
+ drumPitchTable = #(alist->hash-table midiDrumPitches)
}
\translator {
- \type "Performer_group_performer"
- \consists "Lyric_performer"
- \name LyricsVoice
+ \type "Staff_performer" % Performer_group_performer ?
+ \consists "Lyric_performer"
+ \name LyricsVoice
+ \consists "Time_signature_performer"
+ \consists "Tempo_performer"
}
\translator{
- \type "Performer_group_performer"
- \name ChoirStaff
- \accepts Staff
+ \type "Performer_group_performer"
+ \name ChoirStaff
+ \accepts Staff
+ \accepts DrumStaff
}
-\translator {
- \type "Staff_performer"
- \accepts LyricsVoice
- \name Lyrics
- \consists "Time_signature_performer"
- \consists "Tempo_performer"
-}
\translator {
- \type "Staff_performer"
- \accepts ChordNameVoice
- \name ChordNames
+ \type "Staff_performer"
+ \accepts ChordNameVoice
+ \name ChordNames
}
\translator {
- \type "Performer_group_performer"
- \consists "Note_performer"
- \name ChordNameVoice
+ \type "Performer_group_performer"
+ \consists "Note_performer"
+ \name ChordNameVoice
}
\translator {
- \type "Performer_group_performer"
+ \type "Performer_group_performer"
- \name StaffGroup
- \accepts Staff
+ \name StaffGroup
+ \accepts Staff
+ \accepts DrumStaff
}
+\translator { \StaffContext \name RhythmicStaff }
-\translator { \ScoreContext }
-\translator { \StaffContext }
-\translator { \StaffContext \name RhythmicStaff }
-\translator { \VoiceContext }
-\translator { \ThreadContext }
-\translator { \PianoStaffContext }
-\translator { \TabVoiceContext }
-\translator { \TabStaffContext }
-\translator { \GrandStaffContext }
-\translator { \FiguredBassContext }