1 \input texinfo @c -*-texinfo-*-
2 @setfilename programs.info
8 * Programs:: Your Softs-
9 * Ly2dvi:: Python utility to convert mudela to DVI
10 * midi2ly:: convert MIDI to -mudela-
16 @node Programs, , , Top
27 * Ly2dvi DESCRIPTION:: Ly2dvi DESCRIPTION
28 * Ly2dvi SYNOPSIS:: Ly2dvi SYNOPSIS
29 * Ly2dvi OPTIONS:: Ly2dvi OPTIONS
30 * Ly2dvi Features:: Ly2dvi Features
31 * Ly2dvi Environment:: Ly2dvi Environment
32 * Ly2dvi Files:: Ly2dvi Files
33 * Ly2dvi Initialization Sequence::Ly2dvi Initialization Sequence
34 * Ly2dvi See Also:: Ly2dvi See Also
35 * Ly2dvi Bugs:: Ly2dvi Bugs
36 * Ly2dvi Remarks:: Ly2dvi Remarks
37 * Ly2dvi Authors:: Ly2dvi Authors
41 @node Ly2dvi DESCRIPTION, , , Ly2dvi
43 ly2dvi is a Python script which creates input file for LaTeX,
44 based on information from the output files from LilyPond.
45 The script handles multiple files. If a mudela file name is
46 specified LilyPond is run to make an output (TeX) file.
48 One or more LaTeX files are created, based on information found
49 in the output (TeX) files, and latex is finally run to create
50 one or more DVI files.
52 The majority of this utility came from a bourne script written by Jan
53 Arne Fagertun name @file{ly2dvi}.
55 @node Ly2dvi SYNOPSIS, , , Ly2dvi
58 ly2dvi [options] inputfile[.ly] [....]
60 @node Ly2dvi OPTIONS, , , Ly2dvi
65 Set debug mode. There are two levels - in level one some debug
66 info is written, in level two the command @strong{set -x} is run, which
67 echoes every command in the ly2dvi script.
69 Name of additional LaTeX headers file. This is included in the
70 tex file at the end of the headers, last line before @code{\begin@{document@}}
72 Set paper heigth (points). Used together with width and LaTeX name of
73 papersize in case of papersize unknown to ly2dvi.
74 @item -K,--keeplilypond
75 Keep LilyPond output after the run.
77 Set landscape orientation - portrait is the default.
78 (@strong{-L} produces @code{\usepackage[landscape]@{article@}})
80 Switch off page numbering.
81 @item -O,--orientation=
82 Set orientation landscape - obsolete, use @strong{-L} instead.
84 In addition to the DVI file, also Generate a postsript file.
86 Set paper width (points). Used together with heigth and LaTeX name of
87 papersize in case of papersize unknown to ly2dvi.
88 @item -d,--dependencies
89 Tell lilypond to make dependencies file.
93 Keep the LaTeX file after the run.
95 Specify LaTeX language.
96 (@strong{-l norsk} produces @code{\usepackage[norsk]@{babel@}}).
101 (@strong{-p a4} produces @code{\usepackage[a4paper]@{article@}})
103 Normally all output files are included into one LaTeX file.
104 With this switch all files are run separately, to produce one
108 @node Ly2dvi Features, , , Ly2dvi
111 ly2dvi responds to several parameters specified in the mudela
112 file. They are overridden by corresponding command line options.
116 Specify LaTeX language
117 @item latexheaders="";
118 Specify additional LaTeX headers file
119 @item orientation="";
121 @item paperlinewidth="";
122 Specify the width (pt, mm or cm) of the printed lines.
124 Specify name of papersize.
127 @node Ly2dvi Environment, , , Ly2dvi
132 Sets the root directory of the LilyPond installation
134 Additional directories for input files.
136 Temporary directory name. Default is /tmp
139 @node Ly2dvi Files, , , Ly2dvi
142 @file{titledefs.tex} is inspected for definitions used to extract
143 additional text definitions from the mudela file. In the current
144 version the following are defined:
148 The title of the music. Centered on top of the first page.
150 Subtitle, centered below the title.
152 Name of the poet, leftflushed below the below subtitle.
154 Name of the composer, rightflushed below the subtitle.
156 Meter string, leftflushed below the below poet.
158 Name of the opus, rightflushed below the below composer.
160 Name of the arranger, rightflushed below the opus.
162 Name of the instrument, centered below the arranger
164 Name of the piece, leftflushed below the instrument
167 @file{$LILYPONDPREFIX/share/.lilyrc $HOME/.lilyrc ./.lilyrc} are files
168 to set up default running conditions. On Windows OS initialization
169 files are named @file{_lilyrc}. The file syntax is as follows:
176 Where @strong{VARIABLE-NAME} is the name of the variable documented below
177 and @strong{VALUE} is either a string, a 1, or a 0. All files are parsed,
178 in the shown sequence. In the current version the following are
183 This turns off (default) or on the debug capabilities. Possible
184 values are 0 (off) and 1 (on).
185 @item DEPENDENCIES=value
186 This turns off (default) or on the ability to generate a Makefile
187 dependency list. Possible values are 0 (off) and 1 (on).
188 @item KEEPLILYPOND=value
189 This turns off (default) or on the ability to keep the log file
190 associated with the LilyPond job. Possible values are 0 (off) and 1
192 @item KEEPLY2DVI=value
193 This turns off (default) or on the ability to keep the temporary files
194 that are generated by the ly2dvi job. Possible values are 0 (off) and
197 Specify LaTeX language. Possible value is a valid LaTeX language.
199 Specify additional LaTeX headers file. Possible value is a file
201 @item LILYINCLUDE=value
202 Additional directories for input files. Possible value is a delimited
204 @item LILYPONDPREFIX=value
205 This defines the LilyPond root directory. Possible value is a valid
206 directory specification to the LilyPond distribution location.
208 This turns off (default) or on the page numbering capability.
209 Possible values are 0 (page numbering enabled) and 1 (page numbering
211 @item ORIENTATION=value
212 This sets the image orientation. Possible values are
213 portrait (default) and landscape.
214 @item OUTPUTDIR=value
215 This defines the directory where the resultant files will be
216 generated. Possible value is a valid directory specification.
217 Default is the current working directory.
218 @item PAPERSIZE=value
219 This defines the papersize the image will be sized to fit. Possible
220 values are a0, a1, a2, a3, a4 (default), a5, a6, a7, a8, a9, a10, b0,
221 b1, b2, b3, b4, b5, archA, archB, archC, archD, archE, flsa, flse,
222 halfletter, ledger, legal, letter, or note.
224 Specify paperheight (points - an inch is 72.27, a cm is 28.453 points).
225 @item POSTSCRIPT=value
226 This turns off (default) or on the capability of additionally
227 generating a postscript file. Possible values are 0 (off) and 1 (on).
229 Specify paperwidth (points - an inch is 72.27, a cm is 28.453 points).
231 This turns off (default) or on the capability of generating multiple
232 dvi and postscript files from multiple source files. The default is
233 to generate a concatenation of the source files. Possible values are
234 0 (single file) and 1 (separate files).
236 This defines the emporary directory. Actually this is not used at the
237 present. Possible value is a valid directory specification that is
238 writable to the user.
241 @node Ly2dvi Initialization Sequence, , , Ly2dvi
242 @section Initialization Sequence
243 The initialization process reads inputs for several sources. Below is
244 a list of priorities for lowest to hightest proirity.
247 @item Program's defaults
248 @item Values found in LilyPond output file
249 @item Environment variables
250 @item $LILYPONDPREFIX/share/lilypond/.lilyrc
253 @item command line options
256 Note that this differs slightly from the original bourne shell
259 @node Ly2dvi See Also, , , Ly2dvi
262 lilypond(1), tex(1), latex(1)
264 @node Ly2dvi Bugs, , , Ly2dvi
267 If you have found a bug, you should send a bugreport.
270 @item Send a copy of the input which causes the error.
271 @item Send a description of the platform you use.
272 @item Send a description of the LilyPond and ly2dvi version you use.
273 @item Send a description of the bug itself.
274 @item Send it to @email{bug-gnu-music@@gnu.org} (you don't have to subscribe
275 to this mailinglist).
278 @node Ly2dvi Remarks, , , Ly2dvi
281 Many papersizes are now supported. Information on other sizes
282 (LaTeX names, horizontal and vertical sizes) should be mailed to
283 the author or to the mailing list.
285 Supported papersizes are:
287 a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, archA, archB, archC, archD,
288 archE, b0, b1, b2, b3, b4, b5, flsa, flse, halfletter, ledger, legal,
291 @node Ly2dvi Authors, , , Ly2dvi
293 Python Version author:
294 @email{daboys@@austin.rr.com, Jeffrey B. Reed},
295 @uref{http://home.austin.rr.com/jbr/jeff/lilypond/}
297 Original bourne shell version author:
298 @email{Jan.A.Fagertun@@energy.sintef.no, Jan Arne Fagertun},
299 @uref{http://www.termo.unit.no/mtf/people/janaf/}
307 @node midi2ly, , , Top
309 * midi2ly DESCRIPTION:: midi2ly DESCRIPTION
310 * midi2ly OPTIONS:: midi2ly OPTIONS
314 @node midi2ly DESCRIPTION, , , midi2ly
316 midi2ly translates a MIDI input file to Mudela (GNU LilyPond source
317 format). midi2ly is part of the GNU LilyPond music typesetting package.
319 midi2ly [options] midi-file
321 @node midi2ly OPTIONS, , , midi2ly
325 @item -b, --no-quantify,
326 Write exact durations, e.g.: `a4*385/384'.
328 Print lots of debugging stuff.
330 Show a summary of usage.
331 @item -I, --include=@file{DIR},
332 Add DIR to search path.
333 @item -k, --key=ACC[:MINOR],
334 Set default key. ACC > 0 sets number of sharps; ACC < 0 sets number
335 of flats. A minor key is indicated by ":1".
336 @item -n, --no-silly,
337 Assume no plets or double dots, assume smallest (reciprocal) duration 16.
338 @item -o, --output=@file{FILE},
339 Set @file{FILE} as default output.
340 @item -p, --no-plets,
344 @item -s, --smallest=N,
345 Assume no shorter (reciprocal) durations than N.
348 @item -w, --warranty,
349 Show the warranty with which midi2ly comes. (It comes with @strong{NO WARRANTY}!)
350 @item -x, --no-double-dots,
351 Assume no double dotted notes.