In order to produce correct MIDI output you need to produce two score
blocks--one for the paper and one for the MIDI output. To use the
percussion channel you set the property instrument
to
'drums
. Because the drum-pitches themselves are similar to the
general MIDI pitches all you have to do is to insert the voices with
none of the scheme functions to get the correct MIDI output:
\score { \apply #(drums->paper 'mydrums) \context Staff << \clef percussion { \up } \\ { \down } >> \paper{} } \score { \context Staff << \property Staff.instrument = #'drums \up \down >> \midi{} }
Chords entered with < ... >
do not work. This scheme is a
temporary implementation.
This page is for LilyPond-2.0.1 (stable-branch).