### 3.18 Sound

Entered music can also be converted to MIDI output. The performance is intended for proof-hearing the music for errors.

Ties, dynamics and tempo changes are interpreted. Dynamic marks, crescendi and decrescendi translate into MIDI volume levels. Dynamic marks translate to a fixed fraction of the available MIDI volume range, crescendi and decrescendi make the volume vary linearly between their two extremities. The fractions can be adjusted by `dynamicAbsoluteVolumeFunction` in Voice context. For each type of MIDI instrument, a volume range can be defined. This gives a basic equalizer control, which can enhance the quality of the MIDI output remarkably. The equalizer can be controlled by setting `instrumentEqualizer`.

##### Bugs

Many musically interesting effects, such as swing, articulation, slurring, etc., are not translated to MIDI.

The MIDI output allocates a channel for each Staff, and one for global settings. Hence, the MIDI file should not have more than 15 staves (or 14 if you do not use drums). Other staves will remain silent.

Read comments on this page, or add one. This page is for LilyPond-2.2.2 (stable-branch).