[icon]

GNU LilyPond

-- --

What is LilyPond
Home
Examples
Templates
Download
GNU/Linux binaries
Windows binaries
Source code
Documentation
Tutorial
Manual
Glossary
Index

Support
Mailing lists
Search
WikiWiki

External sites
lilypond.org/stable
lilypond.org/development
savannah.gnu.org
ftp.lilypond.org
Mutopia
Other music online

Invoking midi2ly

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.

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:

-b, --no-quantify,
Write exact durations, e.g.: `a4*385/384'.
-D, --debug,
Print lots of debugging stuff.
-h, --help,
Show a summary of usage.
-I, --include=dir,
Add dir to search path.
-k, --key=acc[:minor],
Set default key. acc > 0 sets number of sharps; acc < 0 sets number of flats. A minor key is indicated by ":1".
-n, --no-silly,
Assume no plets or double dots, assume smallest (reciprocal) duration 16.
-o, --output=file,
Set file as default output.
-p, --no-plets,
Assume no plets.
-q, --quiet,
Be quiet.
-s, --smallest=N,
Assume no shorter (reciprocal) durations than N.
-v, --verbose,
Be verbose.
-w, --warranty,
Show the warranty with which midi2ly comes. (It comes with NO WARRANTY!)
-x, --no-double-dots,
Assume no double dotted notes.
Go back to index of LilyPond.

Please send GNU LilyPond questions and comments to lilypond-user@gnu.org.

Please send comments on these web pages to (address unknown)

Copyright (c) 1997--2002 Han-Wen Nienhuys and Jan Nieuwenhuizen.

Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.


This page was built from LilyPond-1.7.14 (development-branch) by

Buchan Milne <(address unknown)>, Thu Mar 6 21:11:35 2003 CET.