Adds the listener list to the dispatcher disp. Whenever disp hears an event of class cl, it will be forwarded to list.
Return value if KEY in ALIST, else DEFAULT-VALUE (or #f if not specified).
Print book. output is passed to the backend unchanged. Eg. it may be a string (for file based outputs) or a socket (for network based output).
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 value for key from a list of alists achain. If no if no entry is found, return DFAULT, or #f if no DFAULT not specified.
Plug a GUILE 1.6 and 1.7 memory leak by breaking a weak reference pointer cycle explicitly.
Return a stream-distributor that distributes all events from context and all its subcontexts.
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.
Scheme callable function to issue the error
msg
. The error is formatted withformat
andrest
.
Evaluate a simple closure with the given delayed argument. If start and end are defined, evaluate it purely with those start- and end-points.
Get the property sym of stream event mus. If sym is undefined, return
' ()
.
Given the font metric font, return the design size, relative to the current output-scale.
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 outputs-cale.
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
Music_output
object in its final state.
Get a hash table with all lilypond Scheme extension functions.
Return a list of all translator objects that may be instantiated.
Returns a list of all event classes that some translator listens to.
Get an alist chain for grob grob, with global as the global default. If unspecified,
font-defaults
from the layout block is taken.
Find the common refpoint of grob and other for axis.
Find the common refpoint of grob and others (a grob-array) for axis.
Get the extent in axis direction of grob relative to the grob refp
Return the value of a pointer in grob g of property sym. It will return
' ()
(end-of-list) if sym is undefined in g.
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
'()
or deflt (if specified) if sym is undefined in g.
Get the coordinate in axis direction of grob relative to the grob refp
Get the extent in axis direction of grob relative to the grob refp, or (0,0) if empty
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).
Return input location in sip as (file-name line char column).
Print msg as a GNU compliant error message, pointing to the location in sip. msg is interpreted similar to
format
's argument
Interpret the music expression mus in the global context ctx. The context is returned in its final state.
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 \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.
Set up a global interpretation context, using the output block output_def. The context is returned.
Optionally, this routine takes an Object-key to to uniquely identify the Score block containing it.
Create a translator group and connect it to the global context global. The translator group is returned.
Creates a listener. Any time the listener hears an object, it will call callback with that object.
callback should take exactly one argument.
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 C++ Music object, 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 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 port.
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.
Make a simple closure. expr should be form of
(
func a1 A2...)
, and will be invoked as(
func delayed-arg a1 a2... )
.
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-ps.scm.
2: the vertical and horizontal extents of the object.
If the extents are unspecified, they are taken to be empty.
Creates a stream event of class cl with the given mutable property list.
Scheme callable function to issue the message
msg
. The message is formatted withformat
andrest
.
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
'()
.
Get attachment in font-metric for attaching a stem to notehead glyph-name.
Optimally break (pages and lines) the Paper_book PB to minimise badness in bother vertical and horizontal spacing.
Convert the contents of a OTF file to CFF file, returning it as a string.
Given the font metric font of an OpenType font, return the information about named glyph glyph (a string)
Extract a table tag from font. Return empty string for non-existent tag.
Lookup sym in pap. Return the value or def (which defaults to
'()
) if undefined.
Optimally break (pages and lines) the Paper_book PB such that page turns only happen in specified places, returning its pages.
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 vector of paper_system objects from paper-score.
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
.
Scheme callable function to print progress
str
. The message is formatted withformat
andrest
.
Determine the extent of elements relative to common in the axis direction.
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 output-scale already, return a list of layout-lines. Take optional Object_key argument.
Print score without page-layout: just print the systems.
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).
Return a stil rotated angle degrees around point (x, y).
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.
Convert the contents of a TTF file to Type42 PFA, returning it as a string.
Scheme callable function to issue the warning
str
. The message is formatted withformat
andrest
.
This page is for LilyPond-2.10.33 (stable-branch).