Node:Invoking midi2ly, Next:Invoking etf2ly, Previous:Invoking convert-ly, Up:Converting from other formats
Midi2ly translates a MIDI input file to a LilyPond source file. MIDI (Music Instrument Digital Interface) is a standard for digital instruments: it specifies cabling, a serial protocol and a file format.
The MIDI file format is a de facto standard format for exporting music from other programs, so this capability may come in useful when you want to import files from a program that has no converter for its native format.
midi2ly
will convert tracks into Staff and
channels into Voice contexts. Relative mode is used
for pitches, durations are only written when necessary.
It is possible to record a MIDI file using a digital keyboard, and then
convert it to .ly
. However, human players are not rhythmically
exact enough to make a MIDI to LY conversion trivial. midi2ly tries to
compensate for these timing errors, but is not very good at this. It is
therefore not recommended to use midi2ly for human-generated midi files.
Hackers who know about signal processing are invited to write a more robust midi2ly. midi2ly is written in Python, using a module written in C to parse the MIDI files.
It is invoked as follows:
midi2ly [option]... midi-file
The following options are supported by midi2ly:
-a, --absolute-pitches
-d, --duration-quant=
DUR
-e, --explicit-durations
-h,--help
-k, --key=
acc[:
minor]
-o, --output=
file
-s, --start-quant=
DUR
-t, --allow-tuplet=
DUR*
NUM/
DEN
-V, --verbose
-v, --version
-w, --warranty
-x, --text-lyrics
This page is for LilyPond-2.0.0 (stable-branch).