Skip to main content

Crate acorde_layout

Crate acorde_layout 

Source
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§

AccidentalMark
A mandatory (non-courtesy) accidental that must be drawn beside a notehead.
BeamGroup
A group of beamed notes within a single voice of a measure.
ConcertKeyOverride
Concert-pitch key signature override for a specific staff of a transposing instrument.
CourtesyAccidental
A courtesy (cautionary) accidental to display in parentheses.
LayoutConfig
Configuration for a layout pass.
LayoutResult
The result of a layout pass.
NoteAddr
Physical address of a note within a score.
PageAddress
Stable address of a page within one print-layout result.
PageLayout
One page in a PrintLayoutResult.
PrintConfig
Host-neutral inputs for deterministic page and system layout.
PrintLayoutResult
Deterministic page/system geometry for a score.
RowLayout
One horizontal row (system) of measures.
SystemAddress
Stable address of a system, including global and page-local positions.
SystemLayout
A logical system placed on a page.
TupletGroup
A group of notes forming one tuplet bracket within a single voice of one measure.

Enums§

BreakReason
Explains why a system or page ended at its final measure.
CropMarkPolicy
Whether a host should expose crop marks at the configured bleed boundary.
GlyphResourcePolicy
How a host resolves fonts and notation glyph resources for print output.
PageNumbering
Policy for the page number exposed in logical page metadata.
PageOrientation
Page orientation for a logical print layout.
PaperSize
A paper size expressed in physical millimetres.
PrintColorPolicy
Color intent for a print-capable host.
PrintLayoutError
SpanMark
A resolved span between two note addresses.

Functions§

compute_layout
Compute a LayoutResult for the given score and configuration.
compute_print_layout
Compute physical page and system placement without rendering or host integration.