Expand description
Logical, pixel-free score layout engine for acorde-core
scores — computes row breaks, multi-rest collapsing, beam groups, tuplet groups, courtesy
accidentals, and span (hairpin/ottava/pedal/slur) resolution for score renderers (e.g. VexFlow).
Structs§
- Accidental
Mark - A mandatory (non-courtesy) accidental that must be drawn beside a notehead.
- Beam
Group - A group of beamed notes within a single voice of a measure.
- Concert
KeyOverride - Concert-pitch key signature override for a specific staff of a transposing instrument.
- Courtesy
Accidental - A courtesy (cautionary) accidental to display in parentheses.
- Glyph
Extents - The content bounds of a validated glyph placement collection, in millimetres.
- Glyph
Metrics - Font-independent metrics for one print glyph, expressed in millimetres.
- Glyph
Placement - A positioned print glyph with a deterministic collision priority.
- Glyph
Resource Descriptor - Reproducible metadata for a host-resolved font or notation glyph resource.
- Keep
Together Range - A contiguous range of physical measures that must remain in one printed system.
- Layout
Config - Configuration for a layout pass.
- Layout
Result - The result of a layout pass.
- Measure
Mark - Host-neutral notation marks attached to one physical measure in a print system.
- Measure
Span - Physical measure interval represented by one visual measure slot.
- Note
Addr - Physical address of a note within a score.
- Page
Address - Stable address of a page within one print-layout result.
- Page
Artifact - A host-neutral page export descriptor.
- Page
Layout - One page in a
PrintLayoutResult. - Page
Publication - Publication information for one logical page.
- Page
Render Node - One node with its physical page and system ownership.
- Page
Render Tree - Deterministic semantic tree for one physical page.
- Page
Span Segment - A cross-system span’s intersection with one printed page.
- Part
Group Mark - A score-level part connector for a publication host.
- Part
Label - A part label suitable for a score header or extracted-part host renderer.
- Print
Config - Host-neutral inputs for deterministic page and system layout.
- Print
Layout Result - Deterministic page/system geometry for a score.
- Publication
Config - Host-neutral publication metadata policy carried into each page artifact.
- Publication
Frame - A host-rendered rectangular publication frame in physical page coordinates.
- Publication
Image Resource - A host-resolved image reference in physical print coordinates.
- Publication
Page Template - Alternate running text for odd and even numbered music pages.
- Publication
Section - A named publication section beginning at one physical measure.
- Publication
Spacer - Extra vertical space inserted before the system that begins at one physical measure.
- Publication
Text Block - A page text block with deterministic physical placement.
- RowLayout
- One horizontal row (system) of measures.
- Source
Voice Address - Mapping from a stable canonical voice slot to its original MusicXML voice number.
- Span
Segment - A span’s intersection with one printed system.
- System
Address - Stable address of a system, including global and page-local positions.
- System
Layout - A logical system placed on a page.
- Tuplet
Group - A group of notes forming one tuplet bracket within a single voice of one measure.
Enums§
- Break
Reason - Explains why a system or page ended at its final measure.
- Crop
Mark Policy - Whether a host should expose crop marks at the configured bleed boundary.
- Final
Page Policy - Policy for distributing systems when automatic pagination would leave a one-system final page.
- Glyph
Collision Class - Semantic collision classes used to make dense print placement deterministic.
- Glyph
Collision Direction - The permitted escape direction for a lower-priority placement in a unified collision pass.
- Glyph
Fallback Policy - How a print host should behave when the primary glyph resource is unavailable.
- Glyph
Placement Error - Validation failures for host-provided print glyph geometry.
- Glyph
Resource Descriptor Error - Validation failures for a host-provided glyph resource descriptor.
- Glyph
Resource Policy - How a host resolves fonts and notation glyph resources for print output.
- Notation
Break Policy - Policy for preserving repeat-ending notation while systems are reflowed.
- Page
Artifact Diagnostic - Typed, host-neutral diagnostics attached to a page export descriptor.
- Page
Numbering - Policy for the page number exposed in logical page metadata.
- Page
Orientation - Page orientation for a logical print layout.
- Page
Render Address - Canonical score address or page-owned publication address for one render node.
- Page
Render Node Kind - Backend-neutral semantic node in a page render tree.
- Paper
Size - A paper size expressed in physical millimetres.
- Part
Layout Policy - Selects the score scope used by print pagination and notation metadata.
- Pickup
Policy - Policy for reserving the first system for a partial pickup measure.
- Print
Color Policy - Color intent for a print-capable host.
- Print
Layout Error - Print
Preset - Reproducible starting configurations for common publication workflows.
- Publication
Frame Placement - The page scope in which a host should draw a publication frame.
- Publication
Image Placement - The page scope in which a host should place a publication image resource.
- Publication
Text Alignment - Horizontal alignment within a publication text block’s physical width.
- Publication
Text Role - Semantic role for a host-rendered publication text block.
- Span
Mark - A resolved span between two note addresses.
Constants§
- GLYPH_
RESOURCE_ CONTRACT_ VERSION - Version of the host-neutral glyph resource descriptor contract.
- PAGE_
RENDER_ TREE_ CONTRACT_ VERSION - Version of the serializable page-render tree contract.
- PRINT_
LAYOUT_ CONTRACT_ VERSION - Version of the serialized host-neutral print layout contract.
- PRINT_
PRESET_ SCHEMA_ VERSION - Version of the built-in host-neutral print preset data.
Functions§
- compute_
layout - Compute a
LayoutResultfor the given score and configuration. - compute_
print_ layout - Compute physical page and system placement without rendering or host integration.
- compute_
print_ layout_ for_ view - Compute print layout for one linked score view without mutating the canonical score.
- distribute_
glyph_ spacing - Distribute additional horizontal space evenly between glyph placements.
- glyph_
extents - Compute content-aware bounds for glyph placements without loading a font resource.
- resolve_
glyph_ collisions - Move lower-priority glyphs vertically until their bounding boxes no longer overlap.
- resolve_
glyph_ collisions_ checked - Validate glyph geometry, then apply deterministic vertical collision resolution.
- resolve_
glyph_ collisions_ constrained - Resolve a mixed collection of glyph placements in one deterministic constraint pass.
- resolve_
glyph_ collisions_ with_ classes - Resolve vertical collisions using explicit semantic classes.
- resolve_
glyph_ horizontal_ collisions - Move lower-priority glyphs horizontally until their bounding boxes no longer overlap.
- resolve_
glyph_ horizontal_ collisions_ checked - Validate glyph geometry, then apply deterministic horizontal collision resolution.
- resolve_
glyph_ horizontal_ collisions_ with_ classes - Resolve horizontal collisions using explicit semantic classes.
- validate_
glyph_ placements - Validate font-independent glyph geometry before collision resolution.