Skip to main content

Settings

This section contains a list of all properties that allow configuration of the alphaTab behavior.

There are multiple ways how settings in alphaTab can be specified. For .net, the normal classes are used and changes are signaled via an UpdateSettings call. For JavaScript, the interaction with the settings is a bit more sensitive due to the lack of type safety and the support of JSON based settings.

Not all settings contain reasonable examples as they often just activate something within alphaTab or change the display of some notation. If you have questions on certain settings, feel free to open a Discussion on GitHub.

The first and most important rule is: when interacting with the settings object directly, the correct structure and data types must be followed to not break alphaTab or make the changes useless. In order to simplify things when configuring alphaTab via JavaScript there are 2 additional features:

  1. AlphaTab can be configured via a simple plain JSON object. This JSON format supports some aliases and also some value conversions like for enums, fonts and colors. The JSON schema can only be used at selected places. Attempting to set JSON values on the derived alphaTab.Settings object can lead to unexpected side effects. The JSON schema can be used when initializing alphaTab or when calling settings.fillFromJson( ... ).

  2. AlphaTab can be configured via HTML data attributes. All settings can also be added as data attributes on the element for which alphaTab is initialized. This is especially useful when multiple different instances of alphaTab are running on the same site but the main code to set up alphaTab is shared. Individual settings can be specified on HTML elements.

The following table contains all the properties as they can be set on the general settings object. For take of simplicity the table lists the properties with the JavaScript naming convention, but if properties are listed with all they are available on all platforms (e.g. in C# with PascalCase).

PropertySummary
Core
core.enableLazyLoadingAll
core.engineAll
core.includeNoteBoundsAll
core.logLevelAll
core.useWorkersAll
Core - JavaScript Specific
core.fileJavaScript
core.fontDirectoryJavaScript
core.scriptFileJavaScript
core.texJavaScript
core.tracksJavaScript
Display
display.accoladeBarPaddingRightAll
display.barCountAll
display.barCountPerPartialAll
display.barsPerRowAll
display.effectStaffPaddingBottomAll
display.effectStaffPaddingTopAll
display.firstStaffPaddingLeftAll
display.firstSystemPaddingTopAll
display.justifyLastSystemAll
display.lastSystemPaddingBottomAll
display.layoutModeAll
display.notationStaffPaddingBottomAll
display.notationStaffPaddingTopAll
display.paddingAll
display.resourcesAll
display.scaleAll
display.staffPaddingLeftAll
display.startBarAll
display.staveProfileAll
display.stretchForceAll
display.systemLabelPaddingLeftAll
display.systemLabelPaddingRightAll
display.systemPaddingBottomAll
display.systemPaddingTopAll
display.systemsLayoutModeAll
Importer
importer.beatTextAsLyricsAll
importer.encodingAll
importer.mergePartGroupsInMusicXmlAll
Notation
notation.displayTranspositionPitchesAll
notation.elementsAll
notation.extendBendArrowsOnTiedNotesAll
notation.extendLineEffectsToBeatEndAll
notation.fingeringModeAll
notation.notationModeAll
notation.rhythmHeightAll
notation.rhythmModeAll
notation.slurHeightAll
notation.smallGraceTabNotesAll
notation.transpositionPitchesAll
Player
player.bufferTimeInMillisecondsAll
player.enableAnimatedBeatCursorAll
player.enableCursorAll
player.enableElementHighlightingAll
player.enablePlayerAll
player.enableUserInteractionAll
player.nativeBrowserSmoothScrollJavaScript
player.playTripletFeelAll
player.scrollModeAll
player.scrollOffsetXAll
player.scrollOffsetYAll
player.scrollSpeedAll
player.slideAll
player.songBookBendDurationAll
player.songBookDipDurationAll
player.vibratoAll
Player - JavaScript Specific
player.outputModeJavaScript
player.scrollElementJavaScript
player.soundFontJavaScript