Construct a
Context_specced_music_iteratormusic iterator
Construct a
Lyric_combine_music_iteratormusic iterator
Construct a
Output_property_music_iteratormusic iterator
Construct a
Part_combine_music_iteratormusic iterator
Construct a
Sequential_music_iteratormusic iterator
Construct a
Simultaneous_music_iteratormusic iterator
Construct a
Time_scaled_music_iteratormusic iterator
Construct a
Unfolded_repeat_iteratormusic iterator
Make a bracket in direction a. The extent of the bracket is given by iv. The wings protude by an amount of p, which may be negative. The thickness is given by t.
Return the context above context where name is defined.
Do a single
\overrideor\revertoperation in context. The grob definitiongrobis extended witheltprop(if val is specified) or reverted (if unspecified).
Return d is a number. Used to distinguish length variables from normal numbers.
type predicate. A direction is a -1, 0 or 1, where -1 represents left or down and 1 represents right or up.
This function retrieves a Molecule for the glyph named name in font. The font must be available as an AFM file. If the glyph is not found, #f is returned.
Get a hash table with all lilypond Scheme extension functions.
Return an list of a all translator objects that may be instantiated during a lilypond run.
Get the extent in axis direction of grob relative to the grob refp
This function retrieves a Molecule for the glyph numbered index in font.
Get the value of a value in grob g of property sym. It will return
'()(end-of-list) if g doesn't have sym set.Grob properties are stored as GUILE association lists, with symbols as keys. All lookup functions identify undefined properties with end-of-list (i.e.
'()in Scheme orSCM_EOLin C)Properties are stored in two ways:
- mutable properties. Grob properties that change from object to object. The storage of these are private to a grob. For example pointers to other grobs are always stored in the mutable properties.
- immutable properties. Grob properties that are shared across different grobs of the same type. The storage is shared, and hence it is read-only. Typically, this is used to store function callbacks, and default settings. They are initially read from scm/grob-description.scm.
Get the property sym of music expression mus. If sym is undefined, return
'().
Return an alist signifying the mutable properties of mus. The immutable properties are not available; they should be initialized by the functions make-music-by-name function.
Get a global option setting. Supported options include
old-relative-used- Report whether old-relative compatibility mode is necessary
old-relative- Report whether old-relative compatibility mode is used
verbose- Report whether we are running in verbose mode
Get the parent of grob. axis is 0 for the X-axis, 1 for the Y-axis.
Get one of the bounds of spanner. dir is
-1for left, and1for right.
Compare two grobs by script priority. For internal use.
Read the file named name, and return its contents in a string. The file is looked up using the lilypond search path.
Print msg as a GNU compliant error message, pointing to the location in sip.
Make a music object/expression of type type, init with props. Warning: this interface will likely change in the near future.
Music is the data type that music expressions are stored in. The data type does not yet offer many manipulations.
WARNING: only for internal use. Please use make-music-by-name.
length is the negative logarithm (base 2) of the duration: 1 is a half note, 2 is a quarter note, 3 is an eighth note, etc. The number of dots after the note is given by dotcount.
The duration factor is optionally given by num and den.
A duration is a musical duration, i.e. a length of time described by a power of two (whole, half, quarter, etc.) and a number of augmentation dots.
The objective of any typesetting system is to put ink on paper in the right places. For LilyPond, this final stage is left to the TeX and the printer subsystem. For lily, the last stage in processing a score is outputting a description of what to put where. This description roughly looks like
PUT glyph AT (x,y) PUT glyph AT (x,y) PUT glyph AT (x,y)you merely have to look at the tex output of lily to see this. Internally these instructions are encoded in Molecules.1 A molecule is what-to-print-where information that also contains dimension information (how large is this glyph?).
Conceptually, Molecules can be constructed from Scheme code, by translating a Molecule and by combining two molecules. In BNF notation:
Molecule :: COMBINE Molecule Molecule | TRANSLATE Offset Molecule | GLYPH-DESCRIPTION ;If you are interested in seeing how this information is stored, you can run with the
-f scmoption. The scheme expressions are then dumped in the output file.
create the rational number with main timing n/d.
Moment is a point in musical time. It is consists of a pair of rationals (m,g), where m is the timing for the main notes, and g the timing for grace notes. In absence of grace notes, g is zero.
octave is specified by an integer, zero for the octave containing middle C. note is a number from 0 to 6, with 0 corresponding to C and 6 corresponding to B. The shift is zero for a natural, negative for flats, or positive for sharps.
Align mol using its own extents. dir is a number -1, 1 are left and right respectively. Other values are interpolated (so 0 means the center.
Construct a molecule by putting second next to first. axis can be 0 (x-axis) or 1 (y-axis), direction can be -1 (left or down) or 1 (right or up). The molecules are juxtaposed with padding as extra space. If this puts the reference points closer than minimum, they are moved by the latter amount.
Return a pair of numbers signifying the extent of mol in axis direction (0 or 1 for x and y axis respectively).
Set the extent (extent must be a pair of numbers) of mol in axis direction (0 or 1 for x- and y-axis respectively).
Note that an extent
(A . B)is an interval and henceAis smaller thanB, and is often negative.
Return a mol, but translated by offset (a pair of numbers).
Return a mol, but translated by amount in axis direction
Extract the duration field from mus, and compress it.
Extract the duration field from mus, and return the length.
converts num to a string without generating many decimals. It leaves a space at the end.
Return a font metric satisfying the font-qualifiers in the alist chain chain.
The font object represents the metric information of a font. Every font that is loaded into LilyPond can be accessed via Scheme.
LilyPond only needs to know the dimension of glyph to be able to process them. This information is stored in font metric files. LilyPond can read two types of font-metrics: TeX Font Metric files (TFM files) and Adobe Font Metric files (AFM files). LilyPond will always try to load AFM files first since they are more versatile.
An alist chain is a list of alists, containing grob properties.
Return pitch with value DELTA = PITCH - ROOT, ie, ROOT == (ly:pitch-transpose root delta).
Transpose p by the amount delta, where delta is the pitch that central C is transposed to.
Make a filled-box of dimensions xext, yext and roundness blot.
set value of property name in context context to val.
Set a global option value. Supported options include
help- List all options.
midi-debug- If set to true, generate human readable MIDI
internal-type-checking- Set paranoia for property assignments
parse-protect- If protection is switched on, errors in inline scheme are caught in the parser. If off, GUILE will halt on errors, and give a stack trace. Default is protected evaluation.
old-relative- Relative for simultaneous functions similar to chord syntax
new-relative- Relative for simultaneous functions similar to sequential music
This function is useful to call from the command line:
lilypond -e "(ly-set-option 'midi-debug #t_)".
Set the options for Point-and-click source specials output. The argument is a symbol. Possible options are
none(no source specials),lineandline-column
Given the font metric in font and the string text, compute the extents of that text in that font. The return value is a pair of number-pairs.
Find a parent of context that has name or alias name. Return
#fif not found.
[1] At some point LilyPond also contained Atom-objects, but they have been replaced by Scheme expressions, making the name outdated.
|
This page is for LilyPond-2.0.3 (stable-branch). Report errors to <bug-lilypond@gnu.org>. |