File: create_midi.md

package info (click to toggle)
frescobaldi 3.3.0%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 24,216 kB
  • sloc: python: 39,014; javascript: 263; sh: 238; makefile: 80
file content (25 lines) | stat: -rw-r--r-- 417 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
=== How to generate a MIDI file? ===
    
By default, LilyPond creates only a PDF file of the music.
To create a MIDI file, you must wrap the music in a `\score` block and add a
`\midi` block to it.

For example:

```lilypond
\version "2.16.2"

music = \relative c' {
  c4 d e f g2
}

\score {
  \music
  \layout {}
  \midi {}
}
```

If you omit the `\layout` block, no PDF file will be generated, only a MIDI
file.