Return value if KEY in ALIST, else DEFAULT-VALUE (or #f if not specified).
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.
Find a parent of context that has name or alias name. Return
#f
if not found.
Return the definition of name (a symbol) within context as an alist
Return the id string of context, i.e. for
\context Voice = one ..
return the stringone
.
Return the name of context, i.e. for
\context Voice = one ..
return the symbolVoice
.
Return the context above context where name is defined.
Do a single
\override
or\revert
operation in context. The grob definitiongrob
is extended witheltprop
(if val is specified) or reverted (if unspecified).
Set value of property name in context context to val.
Return d is a number. Used to distinguish length variables from normal numbers.
type predicate. A direction is
-1
,0
or1
, where-1
represents left or down and1
represents right or up.
Given the font metric font, return the design size, relative to the current outputscale.
Return a Stencil from font for the glyph named name. font must be available as an AFM file. If the glyph is not available, return
#f
.
Return the character code for glyph name in font.
Given the font metric font, return the magnification, relative to the current outputscale.
Given the font metric font of an OpenType font, return the names of the subfonts within font.
Given a Global context in its final state, process it and return the (rendered) result.
Get a hash table with all lilypond Scheme extension functions.
Return a list of all translator objects that may be instantiated.
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
resolution
- Resolution for the PNG output.
Get an alist chain for grob g, with global as the global default. If unspecified,
font-defaults
from the layout block is taken.
Get the extent in axis direction of grob relative to the grob refp
Get the parent of grob. axis is 0 for the X-axis, 1 for the Y-axis.
Return the value of a value in grob g of property sym. It will return
' ()
(end-of-list) if sym is undefined in g.
Compare two grobs by script priority. For internal use.
Read the file name, and return its contents in a string. The file is looked up using the search path.
Return input location in sip as (file-name first-line first-column last-line last-column).
Print msg as a GNU compliant error message, pointing to thelocation in sip.
Parse EXPR, feed bits to FUNC with first arg ARG1
The break status dir of item it.
-1
is end of line,0
unbroken, and1
begin of line.
Load dimensions from TeX in a (KEY . (W H D)) format alist
Make a C++ music object of type type, initialize with props.
This function is for internal use, and is only called by
make-music
, which is the preferred interface for creating music objects.
Make a \book of paper and header (which may be #f as well) containing
\scores
.
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 the optional argument 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.
Create the rational number with main timing n/d, and optional grace timin gn/gd.
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.
Make a function to process music, to be used for the parser.
func
is the function, andsignature
describes Its arguments.signature
is a list containing eitherly:music?
predicates or other type predicates.
Make a PangoFontDescription string for the property alist chain at size size.
Create an outputter that evaluates within
output-
format, writing to file outname.
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 alter is zero for a natural, negative for flats, or positive for sharps.
Stencils are a device independent output expressions.They carry two pieces of information:
1: a specification of how to print this object. This specification is processed by the output backends, for example scm/output-tex.scm.
2: the vertical and horizontal extents of the object.
Lookup sym in the list modules, returning the first occurence. If not found, return default, or
#f
.
Extract the duration field from mus, and return the length.
Get the length of music expression mus, and return as a
Moment
object.
Return an alist containing the mutable properties of mus. The immutable properties are not available, since they are constant and initialized by the
make-music
function.
Get the property sym of music expression mus. If sym is undefined, return
' ()
.
Given the font metric font of an OpenType font, return the information about named glyph glyph (a string)
Return a font metric satisfying the font-qualifiers in the alist chain chain. (An alist chain is a list of alists, containing grob properties).
Return the score for page break after system.
Parse the string LY_CODE. Upon failure, throw
ly-file-failed
key.
Lookup symbol in parser_smob's module. Undefined is '().
Parse the string LY_CODE with PARSER_SMOB.Upon failure, throw
ly-file-failed
key.
Replace current note names in parser. names is an alist of symbols. This only has effect if the current mode is notes.
Return pitch delta such that
pitch
transposed by delta equals root
Transpose p by the amount delta, where delta is relative to middle C.
Scheme callable function to issue the warning
msg
. The message is formatted withformat
andrest
.
Make a
Stencil
that prints a black box of dimensions xext, yext and roundness blot.
Process mus according to output_def. An interpretation context is set up, and mus is interpreted with it. The context is returned in its final state.
Optionally, this routine takes an Object-key to to uniquely identify the Score block containing it.
Run score through layout, an output definition, scaled to correct outputscale already, return a list of layout-lines. Take optional Object_key argument.
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 music functions similar to chord syntax
new-relative
- Relative for simultaneous music 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),line
andline-column
Solve a spring and rod problem for count objects, that are connected by count-1 springs, and an arbitrary number of rods Springs have the format (ideal, hooke) and rods (idx1, idx2, distance) length is a number, ragged a boolean Return: a list containing the force (positive for stretching, negative for compressing and #f for non-satisfied constraints) followed by the spring-count+1 positions of the objects.
Get one of the bounds of spanner. dir is
-1
for left, and1
for right.
Align stil 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 stencil 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 stencils are juxtaposed with padding as extra space. If this puts the reference points closer than minimum, they are moved by the latter amount.first and second may also be '() or #f.
Return a pair of numbers signifying the extent of stil in axis direction (0 or 1 for x and y axis respectively).
Similar to
ly:stencil-combine-edge
, but returns second positioned to be next to first.
Return a pair of numbers signifying the origin stil in axis direction (0 or 1 for x and y axis respectively).
Set the extent of stil (extent must be a pair of numbers) in axis direction (0 or 1 for x- and y-axis respectively).
Return a stil, but translated by offset (a pair of numbers).
Return a copy of stil but translated by amount in axis direction.
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.
Return the type name of the translator object trans. The name is a symbol.
Scheme callable function to issue the warning
msg
. The message is formatted withformat
andrest
.
This page is for LilyPond-2.5.11 (development-branch).