MIDI block - GNU LilyPond
Description: GNU LilyPond

Next: MIDI instrument names, Previous: Creating MIDI files, Up: MIDI output

#### 10.7.2 MIDI block

The MIDI block is analogous to the layout block, but it is somewhat simpler. The `\midi` block can contain

- a `\tempo` definition, and
- context definitions.

A number followed by a period is interpreted as a real number, so for setting the tempo for dotted notes, an extra space should be inserted, for example

    \midi { \tempo 4 . = 120 }

Context definitions follow precisely the same syntax as within the \layout block. Translation modules for sound are called performers. The contexts for MIDI output are defined in `ly/performer-init.ly`.

This page is for LilyPond-2.8.8 (stable-branch).

Other languages: English.
Using automatic language selection.