alphaTab.json.EngravingSettingsJson
This class holds all all spacing, thickness and scaling metrics related to engraving the music notation. While general layout settings are configurable via the display settings, these settings go deeper into how the individual music symbols are scaled and aligned targeting specification compliance with the Standard Music Font Layout (SMuFL).
Unless specified differently the settings here are available since 1.7.0
If properties are marked with a SMuFl tag, it means that the values are part of the SMuFL specification and should be filled from the respective metadata files shipped with the fonts or aligned generally with the specification. Other properties are custom to alphaTab.
In SmuFL Sizes and coordinates are expressed in "staff space" units which is 1/4 of the configured font size. In this data structure the values are converted to pixels.
interface EngravingSettingsJsonPropertiesโ
accidentalPaddingโ
The horizontal padding between individual accidentals when multiple ones are applied.
accidentalPadding?: number;alternateEndingsPaddingโ
The padding used for aligning the alternate ending brackets and texts.
alternateEndingsPadding?: number;arrowShaftThicknessโ
The thickness of the line used for the shaft of an arrow
arrowShaftThickness?: number;barlineContentPaddingโ
The minimum horizontal padding between the content of the last beat in a bar and the bar line. Additional space is only added where the content would come closer than this. Behind Bars: stems must never come closer to a barline than one stave-space.
barlineContentPadding?: number;barlineSeparationโ
The default distance between multiple thin barlines when locked together, e.g. between two thin barlines making a double barline, measured from the right-hand edge of the left barline to the left-hand edge of the right barline.
barlineSeparation?: number;beamSpacingโ
The distance between the inner edge of the primary and outer edge of subsequent secondary beams
beamSpacing?: number;beamThicknessโ
The thickness of a beam
beamThickness?: number;beatContentPaddingโ
The minimum horizontal padding between the content of two adjacent beats (e.g. a notehead and the accidental or grace notes of the following beat). Additional space is only added between beats where their content would come closer than this. Behind Bars: where space is limited, characters should not be closer than 1/2 stave-space and never collide.
beatContentPadding?: number;beatTimerPaddingโ
The padding between the border and text of beat timers.
beatTimerPadding?: number;bendNoteHeadElementPaddingโ
The additional padding applied to helper note heads shown on bends.
bendNoteHeadElementPadding?: number;bracketThicknessโ
The thickness of the vertical line of a bracket grouping staves together
bracketThickness?: number;brokenBeamWidthโ
The width of broken beams e.g. when combining a 32nd and 16th note
brokenBeamWidth?: number;chordDiagramFretHeightโ
The height of the individual fret lines.
chordDiagramFretHeight?: number;chordDiagramFretSpacingโ
The spacing between frets on chord diagrams.
chordDiagramFretSpacing?: number;chordDiagramLineWidthโ
The width of all other lines drawn on chord diagrams.
chordDiagramLineWidth?: number;chordDiagramNutHeightโ
The height of the nut on chord diagrams..
chordDiagramNutHeight?: number;chordDiagramPaddingXโ
The horizontal padding applied to individual chord diagrams.
chordDiagramPaddingX?: number;chordDiagramPaddingYโ
The vertical padding applied to individual chord diagrams.
chordDiagramPaddingY?: number;chordDiagramStringSpacingโ
The spacing between strings on chord diagrams.
chordDiagramStringSpacing?: number;dashedBarlineDashLengthโ
The length of the dashes to be used in a dashed barline
dashedBarlineDashLength?: number;dashedBarlineGapLengthโ
The length of the gap between dashes in a dashed barline
dashedBarlineGapLength?: number;dashedBarlineThicknessโ
The thickness of a dashed barline
dashedBarlineThickness?: number;deadSlappedLineWidthโ
The width of the lines drawn for dead slapped beats.
deadSlappedLineWidth?: number;directionsScaleโ
The relative scale of any directions glyphs drawn like coda or segno.
directionsScale?: number;ghostParenthesisPaddingโ
The padding between the parenthesis and wrapped elements on ghost notes and free time time signatures
ghostParenthesisPadding?: number;ghostParenthesisWidthโ
The width of the parenthesis shown on ghost notes and free time time signatures.
ghostParenthesisWidth?: number;glyphBottomโ
A lookup containing the offset from the glyph center to the visual bottom of the glyph. The glyph center is the origin coordinate at which the glyph paths start when drawn on the alphabetic baseline.
glyphBottom?: Map<MusicFontSymbol | keyof typeof MusicFontSymbol | Lowercase<keyof typeof MusicFontSymbol>, number>;glyphHeightsโ
A lookup for the heights of the visual bounding box for the glyphs.
glyphHeights?: Map<MusicFontSymbol | keyof typeof MusicFontSymbol | Lowercase<keyof typeof MusicFontSymbol>, number>;glyphTopโ
A lookup containing the offset from the visual top to the glyph center. The glyph center is the origin coordinate at which the glyph paths start when drawn on the alphabetic baseline.
glyphTop?: Map<MusicFontSymbol | keyof typeof MusicFontSymbol | Lowercase<keyof typeof MusicFontSymbol>, number>;glyphWidthsโ
A lookup for the widths of the visual bounding box for the glyphs.
glyphWidths?: Map<MusicFontSymbol | keyof typeof MusicFontSymbol | Lowercase<keyof typeof MusicFontSymbol>, number>;hairpinThicknessโ
The thickness of a crescendo/diminuendo hairpin
hairpinThickness?: number;leftHandTabTieWidthโ
The width of ties drawn for left-hand-tapped notes.
leftHandTabTieWidth?: number;legerLineExtensionโ
The amount by which a leger line should extend either side of a notehead, scaled proportionally with the notehead's size, e.g. when scaled down as a grace note
legerLineExtension?: number;legerLineThicknessโ
The thickness of a leger line (normally somewhat thicker than a staff line)
legerLineThickness?: number;lineRangedGlyphDashGapโ
The gap between dashes on line ranged glyphs (like let-ring)
lineRangedGlyphDashGap?: number;lineRangedGlyphDashSizeโ
The size between dashes on line ranged glyphs (like let-ring)
lineRangedGlyphDashSize?: number;multiVoiceDisplacedNoteHeadSpacingโ
The spacing between displaced displaced note heads in case of multi-voice note head overlaps.
multiVoiceDisplacedNoteHeadSpacing?: number;musicFontSizeโ
The font size of the music font in pixel.
musicFontSize?: number;numberedBarRendererBarSizeโ
The size of the bars drawn in numbered notation to indicate the durations.
numberedBarRendererBarSize?: number;numberedBarRendererBarSpacingโ
The spacing between the bars drawn in numbered notation to indicate the durations.
numberedBarRendererBarSpacing?: number;numberedDashGlyphPaddingโ
The padding minimum between the duration dashes.
numberedDashGlyphPadding?: number;numberedDashGlyphWidthโ
The width of the dashed drawn in numbered notation to indicate the durations.
numberedDashGlyphWidth?: number;octaveLineThicknessโ
The thickness of the dashed line used for an octave line
octaveLineThickness?: number;oneStaffSpaceโ
The staff space in pixel
oneStaffSpace?: number;onNoteEffectPaddingโ
The padding between effects and glyphs placed above/blow the note heads e.g. staccato
onNoteEffectPadding?: number;pedalLineThicknessโ
The thickness of the line used for piano pedaling
pedalLineThickness?: number;postNoteEffectPaddingโ
The padding between effects and glyphs placed after the note heads, e.g. slides or bends
postNoteEffectPadding?: number;preBeatGlyphSpacingโ
The padding between glyphs shown before any beats e.g. clefs and time signatures
preBeatGlyphSpacing?: number;preNoteEffectPaddingโ
The padding between effects and glyphs placed before the note heads, e.g. accidentals or brushes
preNoteEffectPadding?: number;repeatBarlineDotSeparationโ
The default horizontal distance between the dots and the inner barline of a repeat barline, measured from the edge of the dots to the edge of the barline.
repeatBarlineDotSeparation?: number;repeatEndingLineThicknessโ
The thickness of the brackets drawn to indicate repeat endings
repeatEndingLineThickness?: number;repeatOffsetXโ
Holds the x-coordinate offsets for glyphs which are drawn repeatedly (like vibrato waves).
repeatOffsetX?: Map<MusicFontSymbol | keyof typeof MusicFontSymbol | Lowercase<keyof typeof MusicFontSymbol>, number>;rowContainerGapโ
The innter gap for glyphs arranged in a grid like fashion, like the tunings and chord diagrams.
rowContainerGap?: number;rowContainerPaddingโ
The outer padding for glyphs arranged in a grid like fashion, like the tunings and chord diagrams.
rowContainerPadding?: number;simpleSlideHeightโ
The height of simple slides like slide out down which do slide to a defined target note.
simpleSlideHeight?: number;simpleSlideWidthโ
The width of simple slides like slide out down which do slide to a defined target note.
simpleSlideWidth?: number;slurMidpointThicknessโ
The thickness of the mid-point of a slur (i.e. its thickest point)
slurMidpointThickness?: number;songBookWhammyDipHeightโ
The height of simple dip whammys when using the songbook mode.
songBookWhammyDipHeight?: number;staffContentPaddingโ
The minimum vertical padding between the content of two adjacent staves (e.g. a stem below one staff and a fret number above the next one). Additional space is only added between staves where their content would come closer than this. Behind Bars: characters should not be closer than 1/2 stave-space and never collide.
staffContentPadding?: number;staffLineThicknessโ
The thickness of each staff line
staffLineThickness?: number;standardStemLengthโ
The standard stem length of a quarter note.
standardStemLength?: number;stemDownโ
Holds information about where to place downwards pointing stems on glyphs.
stemDown?: Map<MusicFontSymbol | keyof typeof MusicFontSymbol | Lowercase<keyof typeof MusicFontSymbol>, EngravingStemInfoJson>;stemFlagHeightโ
The space needed by flags on the stem-side from top to bottom to place.
stemFlagOffsetsโ
The additional offsets stems need to have enough space for flags.
stemThicknessโ
The thickness of a stem
stemThickness?: number;stemUpโ
Holds information about where to place upwards pointing stems on glyphs.
stemUp?: Map<MusicFontSymbol | keyof typeof MusicFontSymbol | Lowercase<keyof typeof MusicFontSymbol>, EngravingStemInfoJson>;stringNumberCirclePaddingโ
The padding between the circles around string numbers.
stringNumberCirclePadding?: number;sustainPedalLinePaddingโ
The padding between the sustain pedal glyphs and lines.
sustainPedalLinePadding?: number;tabBendDashSizeโ
The size of the dashes on bends (e.g. on holds)
tabBendDashSize?: number;tabBendLabelPaddingโ
The padding applied between the line and text of bends.
tabBendLabelPadding?: number;tabBendPerValueHeightโ
The height applied per quarter-note.
tabBendPerValueHeight?: number;tabBendStaffPaddingโ
The additional padding between the staff and the point where bend values are calculated from.
tabBendStaffPadding?: number;tabLineSpacingโ
The staff space in pixel for tablature fonts. This is typically 1.5 of the standard staff space.
tabLineSpacing?: number;tabWhammyDashSizeโ
The size of the dashes on whammys (e.g. on holds)
tabWhammyDashSize?: number;tabWhammyPerHalfHeightโ
The height applied per half-note whammy.
tabWhammyPerHalfHeight?: number;tabWhammyTextPaddingโ
The padding between the text and whammy lines.
tabWhammyTextPadding?: number;tempoNoteScaleโ
The relative scale of the note drawn on tempo markers
tempoNoteScale?: number;thickBarlineThicknessโ
The thickness of a thick barline, e.g. in a final barline or a repeat barline
thickBarlineThickness?: number;thinBarlineThicknessโ
The thickness of a dashed barline
thinBarlineThickness?: number;thinThickBarlineSeparationโ
The default distance between a pair of thin and thick barlines when locked together, e.g. between the thin and thick barlines making a final barline, or between the thick and thin barlines making a start repeat barline.
thinThickBarlineSeparation?: number;tieHeightโ
The height of ties.
tieHeight?: number;tieMidpointThicknessโ
The thickness of the mid-point of a tie
tieMidpointThickness?: number;tripletFeelBracketPaddingโ
The padding between the bracket lines and numbers of tuplets
tripletFeelBracketPadding?: number;tuningGlyphCircleNumberScaleโ
The scale of string numbers shown on tuning glyphs.
tuningGlyphCircleNumberScale?: number;tuningGlyphStringColumnScaleโ
The scale factor applied to the width of the columns of string on tuning glyphs.
tuningGlyphStringColumnScale?: number;tuningGlyphStringRowPaddingโ
The padding between rows of strings on tuning glyphs.
tuningGlyphStringRowPadding?: number;tupletBracketThicknessโ
The thickness of the brackets drawn either side of tuplet numbers
tupletBracketThickness?: number;