Skip to main content

Bar Metadata

This page documents the bar metadata scope โ€” the metadata tags that apply to a single bar or master bar. Time signatures, clefs, key signatures, repeats, and similar per-bar settings live here.

\tsโ€‹

Scope: Bar metadata

Syntax
// [1]: Specifies a common (4/4) time signature using the special C symbol
\ts common
// [2]:
\ts (numerator denominator)

Description: Defines the time signature for this and subsequent bars.

AlphaTab does not yet support polytempo notation where instruments might use different time signatures. Therefore be sure to only specify the timesignatures once as part of the first track/staff or ensure they are consistent across the whole document.

Parameters:

OverloadNameDescriptionTypeRequired
[1]commonSpecifies a common (4/4) time signature using the special C symbolcommonyes
[2]numeratorThe time signature numeratorNumberyes
[2]denominatorThe time signature denominatorNumberyes

Parameter Values:

Following parameters have value limitations

OverloadNameValues
[1]common
ValueDescription
commonSpecifies a common (4/4) time signature using the special C symbol

Example:

00:00
00:00
\ts 3 4 | \ts 4 4 | \ts 6 8 | \ts common

\roโ€‹

Scope: Bar metadata

Syntax
\ro ()

Description: Start a repeat

Example:

00:00
00:00
\ro 1.3 2.3 3.3 4.3 | 5.3 6.3 7.3 8.3 | \rc 2 1.3 2.3 3.3 4.3 |
\ro \rc 3 1.3 2.3 3.3 4.3

\rcโ€‹

Scope: Bar metadata

Syntax
\rc repeats

Description: Marks the end of a repeat.

Parameters:

NameDescriptionTypeRequired
repeatsThe number of repeats which should be playedNumberyes

Example:

00:00
00:00
\ro 1.3 2.3 3.3 4.3 | 5.3 6.3 7.3 8.3 | \rc 2 1.3 2.3 3.3 4.3 |
\ro \rc 3 1.3 2.3 3.3 4.3

\aeโ€‹

Scope: Bar metadata

Syntax
\ae (ending)

Description: Specifies on which repeats a bar should be played (to build alternate endings).

Parameters:

NameDescriptionTypeRequired
endingThe repeats on which the bar should be playedNumber[]yes

Example:

00:00
00:00
\ro 1.3 2.3 3.3 4.3 | \ae (1 2 3) 5.3 6.3 7.3 8.3 | \ae 4
c 4 5.3 8.3 7.3 6.3

\ksโ€‹

Scope: Bar metadata

Syntax
\ks key

Description: Specifies the key signature for this and subsequent bars.

Parameters:

NameDescriptionTypeRequired
keyThe key signatureIdentyes

Parameter Values:

Following parameters have value limitations

NameValues
key
ValueDescription
cb
gb
db
ab
eb
bb
f
c
g
d
a
e
b
f#
c#
cbmajor
abminor
gbmajor
ebminor
dbmajor
bbminor
abmajor
fminor
ebmajor
cminor
bbmajor
gminor
fmajor
dminor
cmajor
aminor
gmajor
eminor
dmajor
bminor
amajor
f#minor
emajor
c#minor
bmajor
g#minor
f#major
d#minor
f#
c#major
a#minor
c#

Example:

00:00
00:00
\ks Cb | \ks C | \ks C# |
\ks Aminor | \ks Dmajor | \ks Bminor

\clefโ€‹

Scope: Bar metadata

Syntax
\clef clef

Description: Changes the clef for this and subsequent bars.

Parameters:

NameDescriptionTypeRequired
clefThe clefIdent|Numberyes

Parameter Values:

Following parameters have value limitations

NameValues
clef
ValueDescription
neutral
c3
c4
f4
g2
n
alto
tenor
bass
treble

Example:

00:00
00:00
\clef G2 | \clef F4 | \clef C3 | \clef C4 | \clef N |
\clef Treble | \clef Bass | \clef Tenor | \clef Alto | \clef Neutral |

\ottavaโ€‹

Scope: Bar metadata

Syntax
\ottava ottava

Description: Changes the clef ottave for this and subsequent bars.

Parameters:

NameDescriptionTypeRequired
ottavaThe clef ottavaIdentyes

Parameter Values:

Following parameters have value limitations

NameValues
ottava
ValueDescription
15maQuindicesima (+2 octaves)
8vaOttava (+1 octave)
regularRegular
8vbOttava Bassa (-1 octave)
15mbQuindicesima bassa (-2 octaves)
15maQuindicesima (+2 octaves)
8vaOttava (+1 octave)
8vbOttava Bassa (-1 octave)
15mbQuindicesima bassa (-2 octaves)

Example:

00:00
00:00
\clef F4 \ottava 15ma | | \ottava regular | | \clef C3 \ottava 8vb | |

\tempoโ€‹

Scope: Bar metadata

Syntax
// [1]:
\tempo (tempo label)
// [2]:
\tempo (tempo label position hide)

Description: Adds a tempo change to the bar.

A bar can have multiple tempo changes. They can either be relatively positioned using this metadata tag or applied via the tempo property as beat effect.

Tempo changes affect the whole song and not only an individual track. To avoid unexpected side effects, we recomment to specify the tempo changes only once on the first track/staff.

Parameters:

OverloadNameDescriptionTypeRequired
[1]tempoThe new tempo in BPMNumberyes
[1]labelA textual label for the tempoStringno ""
[2]tempoThe new tempo in BPMNumberyes
[2]labelA textual label for the tempoStringyes ""
[2]positionA relative (ratio) position where within the bar the tempo change should happenNumberno 0
[2]hideIf specified the tempo change is not visually shownhideno

Parameter Values:

Following parameters have value limitations

OverloadNameValues
[2]hide
ValueDescription
hideIf specified the tempo change is not visually shown

Example:

00:00
00:00
\tempo 30
C4 D4 E4 F4 |
\tempo (120 "Moderate")
\tempo (60 "" 0.5 hide)
C4 D4 E4 F4 |

\tfโ€‹

Scope: Bar metadata

Syntax
\tf tripletFeel

Description: Changes the triplet feel (aka. swing) play style.

Parameters:

NameDescriptionTypeRequired
tripletFeelThe triplet feel styleIdent|Numberyes

Parameter Values:

Following parameters have value limitations

NameValues
tripletFeel
ValueDescription
noneNo triplet feel
triplet16thTriplet 16th
triplet8thTriplet 8th
dotted16thDotted 16th
dotted8thDotted 8th
scottish16thScottish 16th
scottish8thScottish 8th
noneNo triplet feel
noNo triplet feel
noTripletFeelNo triplet feel
t16Triplet 16th
triplet-16thTriplet 16th
t8Triplet 8th
triplet-8thTriplet 8th
d16Dotted 16th
dotted-16thDotted 16th
d8Dotted 8th
dotted-8thDotted 8th
s16Scottish 16th
scottish-16thScottish 16th
s8Scottish 8th
scottish-8thScottish 8th

Example:

00:00
00:00
\tf none 3.3*4 |
\tf triplet16th 3.3*4 | \tf triplet8th 3.3*4 |
\tf dotted16th 3.3*4 | \tf dotted8th 3.3*4 |
\tf scottish16th 3.3*4 | \tf scottish8th 3.3*4 |

\acโ€‹

Scope: Bar metadata

Syntax
\ac ()

Description: Marks the bar as an anacrusis (pick-up) bar.

By default bars follow a strict timing defined by the time signature and tempo. Anacrusis (aka. pickup bars) do not follow this rule. The length of those bars is defined by the actual beats/notes in the bar.

Example:

00:00
00:00
\ks D \ts 24 16 \ac r.16 6.3 7.3 9.3 7.3 6.3 | r.16 5.4 7.4 9.4 7.4 5.4 6.3.4{d} 9.6.16 10.6 12.6 10.6 9.6 14.6.4{d} r.16

\sectionโ€‹

Scope: Bar metadata

Syntax
// [1]:
\section text
// [2]:
\section (marker text)

Description: Starts a new section

Parameters:

OverloadNameDescriptionTypeRequired
[1]textThe text/description of the new sectionStringyes
[2]markerThe marker for the section, typically a single letterStringyes
[2]textThe text/description of the new sectionStringyes

Example:

00:00
00:00
\section "Intro" // simple section
1.1 1.1 1.1 1.1 | 1.1 1.1 1.1 1.1 |
\section "S" "Solo" // with marker and section name differently
1.1 1.1 1.1 1.1

\jumpโ€‹

Scope: Bar metadata

Syntax
\jump direction

Description: Adds a direction/jump instruction to the bar.

Parameters:

NameDescriptionTypeRequired
directionThe direction to addIdentyes

Parameter Values:

Following parameters have value limitations

NameValues
direction
ValueDescription
fineFine (Target)
segnoSegno (Target)
segnoSegnoSegnoSegno (Target)
codaCoda (Target)
doubleCodaDoubleCoda (Target)
daCapoDaCapo (Jump)
daCapoAlCodaDaCapoAlCoda (Jump)
daCapoAlDoubleCodaDaCapoAlDoubleCoda (Jump)
daCapoAlFineDaCapoAlFine (Jump)
dalSegnoDalSegno (Jump)
dalSegnoAlCodaDalSegnoAlCoda (Jump)
dalSegnoAlDoubleCodaDalSegnoAlDoubleCoda (Jump)
dalSegnoAlFineDalSegnoAlFine (Jump)
dalSegnoSegnoDalSegnoSegno (Jump)
dalSegnoSegnoAlCodaDalSegnoSegnoAlCoda (Jump)
dalSegnoSegnoAlDoubleCodaDalSegnoSegnoAlDoubleCoda (Jump)
dalSegnoSegnoAlFineDalSegnoSegnoAlFine (Jump)
daCodaDaCoda (Jump)
daDoubleCodaDaDoubleCoda (Jump)

Example:

00:00
00:00
\ro \rc 2 3.3*4 |
3.3*4 |
\jump Segno 3.3*4 |
\ro
c 2 3.3*4 |
\jump DaCoda 3.3*4 |
3.3*4 | 3.3*4
\jump DalSegnoAlCoda 3.3*4 |
3.3*4 |
\jump Coda 3.3*4 |
3.3*4 |
3.3*4

\ftโ€‹

Scope: Bar metadata

Syntax
\ft ()

Description: Marks the bar as a free-time bar where players are free to vary the timing.

Example:

00:00
00:00
:2
C4*2 |
\ft C4*2 |
\ft C4*2 |
C4*2 |

\simileโ€‹

Scope: Bar metadata

Syntax
\simile mark

Description: Adds a simile mark to the bar indicating that the content of the last, or previous two bars should be repeated.

Parameters:

NameDescriptionTypeRequired
markThe mark to addnone|simple|firstOfDouble|secondOfDoubleyes

Parameter Values:

Following parameters have value limitations

NameValues
mark
ValueDescription
noneNo simile mark is applied
simpleA simple simile mark. The previous bar is repeated.
firstOfDoubleA double simile mark. This value is assigned to the first bar of the 2 repeat bars.
secondOfDoubleA double simile mark. This value is assigned to the second bar of the 2 repeat bars.

Example:

00:00
00:00
3.3*4 | \simile simple | 3.3*4 | 4.3*4 | \simile firstofdouble | \simile secondofdouble

\barlineLeftโ€‹

Scope: Bar metadata

Syntax
\barlineLeft style

Description: Adjusts the lines which will be shown left on the bar.

For some special notation needs, the default bar line can be adjusted on every bar. The bar line styles are aligned with the ones from MusicXML.

alphaTab attempts to reuse lines on overlapping styles across bars.

Parameters:

NameDescriptionTypeRequired
styleThe line style to useIdentyes

Parameter Values:

Following parameters have value limitations

NameValues
style
ValueDescription
automaticAuto detect line to show
dashed
dotted
heavy
heavyHeavy
heavyLight
lightHeavy
lightLight
none
regular
short
tick

Example:

00:00
00:00
\instrument piano
\track "Overlapping"
\staff
\barlineleft dashed
\barlineright dotted
|
\barlineleft heavyheavy
\barlineright heavyheavy

\staff
\barlineleft lightlight
\barlineright lightheavy
|
\barlineleft heavylight
\barlineright dashed
\track "All Styles"
\staff
\barlineright dashed |
\barlineright dotted |
\barlineright heavy |
\barlineright heavyHeavy |
\barlineright heavyLight |
\barlineright lightHeavy |
\barlineright lightlight |
\barlineright none |
\barlineright regular |
\barlineright short |
\barlineright tick |

\barlineRightโ€‹

Scope: Bar metadata

Syntax
\barlineRight style

Description: Adjusts the lines which will be shown right on the bar.

For some special notation needs, the default bar line can be adjusted on every bar. The bar line styles are aligned with the ones from MusicXML.

alphaTab attempts to reuse lines on overlapping styles across bars.

Parameters:

NameDescriptionTypeRequired
styleThe line style to useIdentyes

Parameter Values:

Following parameters have value limitations

NameValues
style
ValueDescription
automaticAuto detect line to show
dashed
dotted
heavy
heavyHeavy
heavyLight
lightHeavy
lightLight
none
regular
short
tick

Example:

00:00
00:00
\instrument piano
\track "Overlapping"
\staff
\barlineleft dashed
\barlineright dotted
|
\barlineleft heavyheavy
\barlineright heavyheavy

\staff
\barlineleft lightlight
\barlineright lightheavy
|
\barlineleft heavylight
\barlineright dashed
\track "All Styles"
\staff
\barlineright dashed |
\barlineright dotted |
\barlineright heavy |
\barlineright heavyHeavy |
\barlineright heavyLight |
\barlineright lightHeavy |
\barlineright lightlight |
\barlineright none |
\barlineright regular |
\barlineright short |
\barlineright tick |

\scaleโ€‹

Scope: Bar metadata

Syntax
\scale scale

Description: Adjusts the relative scale of the bar when using systemsLayoutMode: 'UseModelLayout' with the page layout.

Parameters:

NameDescriptionTypeRequired
scaleThe scale of the bar within the systemNumberyes

Example:

00:00
00:00
\track { defaultSystemsLayout 3 }
\scale 0.25 :1 c4 | \scale 0.5 c4 | \scale 0.25 c4 |
\scale 0.5 c4 | \scale 2 c4 | \scale 0.5 c4 |
c4 | c4

\widthโ€‹

Scope: Bar metadata

Syntax
\width width

Description: Adjusts the absolute of the bar when using systemsLayoutMode: 'UseModelLayout' with the horizontal layout.

Parameters:

NameDescriptionTypeRequired
widthThe absolute width of the barNumberyes

Example:

00:00
00:00
\track
\width 100 :1 c4 | \width 300 c4 | \width 350 c4

\syncโ€‹

Scope: Bar metadata

Syntax
\sync (barIndex occurence millisecondOffset ratioPosition)

Description: Adds a new sync point for synchronizing the music sheet with an external media source like a backing track or video player.

alphaTex support specifying sync points for the synchronization with external media.

It is recommended to add the sync points at the very end of the song but it is also possible to define them inbetween.

The barIndex, occurence, ratioPosition parameters define the absolute position within the music sheet. The millisecondOffset defines the absolute position within the external media.

With this information known, alphaTab can synchronize the external media with the music sheet.

Parameters:

NameDescriptionTypeRequired
barIndexThe index of the bar being syncedNumberyes
occurenceThe occurence of the bar for which this sync point applies (on repeats)Numberyes
millisecondOffsetThe absolute millisecond offset within the external mediaNumberyes
ratioPositionThe relative position within the bar where the synchronization happensNumberno 0

Example:

\title "Prelude in D Minor"
\artist "J.S. Bach (1685-1750)"
\copyright "Public Domain"
\tempo 80
.
\ts 3 4
0.4.16 (3.2 -.4) (1.1 -.4) (5.1 -.4) 1.1 3.2 1.1 3.2 2.3.8 (3.2 3.4) |
(3.2 0.4).16 (3.2 -.4) (1.1 -.4) (5.1 -.4) 1.1 3.2 1.1 3.2 2.3.8 (3.2 3.4) |
(3.2 0.4).16 (3.2 -.4) (3.1 -.4) (6.1 -.4) 3.1 3.2 3.1 3.2 3.3.8 (3.2 0.3) |
(3.2 0.4).16 (3.2 -.4) (3.1 -.4) (6.1 -.4) 3.1 3.2 3.1 3.2 3.3.8 (3.2 0.3) |
.
\sync 0 0 0
\sync 0 0 1500 0.666
\sync 1 0 4075 0.666
\sync 2 0 6475 0.333
\sync 3 0 10223 1

\accidentalsโ€‹

Scope: Bar metadata

Syntax
\accidentals mode

Description: Changes the mode how alphaTab should treat accidentals when writing pitched notes.

alphaTab can use the accidentals as specified in alphaTex, or apply accidentals automatically based on the note pitch.

Parameters:

NameDescriptionTypeRequired
modeThe mode which should be activeauto|explicityes

Parameter Values:

Following parameters have value limitations

NameValues
mode
ValueDescription
autoAutomatic (Based on Pitch)
explicitExplicit (as Written)

Example:

00:00
00:00
\accidentals explicit
C#4 C4 Eb4 Ax4 |
\accidentals auto
C#4 C4 Eb4 Ax4 |

\spdโ€‹

Scope: Bar metadata

Syntax
\spd position

Description: Specifies how the sustain petal should be pressed down (spd), held (sph) or lifted up (spu).

This tag allows specifying the sustain pedal relative to the bar. The sustain pedal can also be applied via beat properties.

Parameters:

NameDescriptionTypeRequired
positionThe relative position within the bar for the marker (0-1)Numberyes

Example:

00:00
00:00
\spd 0
\spu 0.25
\spd 0.5
\sph 0.75
\spu 1
:8 C4 * 8

\sphโ€‹

Scope: Bar metadata

Syntax
\sph position

Description: Specifies how the sustain petal should be pressed down (spd), held (sph) or lifted up (spu).

This tag allows specifying the sustain pedal relative to the bar. The sustain pedal can also be applied via beat properties.

Parameters:

NameDescriptionTypeRequired
positionThe relative position within the bar for the marker (0-1)Numberyes

Example:

00:00
00:00
\spd 0
\spu 0.25
\spd 0.5
\sph 0.75
\spu 1
:8 C4 * 8

\spuโ€‹

Scope: Bar metadata

Syntax
\spu position

Description: Specifies how the sustain petal should be pressed down (spd), held (sph) or lifted up (spu).

This tag allows specifying the sustain pedal relative to the bar. The sustain pedal can also be applied via beat properties.

Parameters:

NameDescriptionTypeRequired
positionThe relative position within the bar for the marker (0-1)Numberyes

Example:

00:00
00:00
\spd 0
\spu 0.25
\spd 0.5
\sph 0.75
\spu 1
:8 C4 * 8

\voiceModeโ€‹

Scope: Bar metadata

Syntax
\voiceMode mode

Description: Changes the mode how alphaTab should treat voices when adding \voice.

You can either choose to write voice-by-voice where each voice has all bars defined. You write bar-by-bar where a new voice is only added to the current bar.

Parameters:

NameDescriptionTypeRequired
modeThe mode which should be activestaffWise|barWiseyes

Parameter Values:

Following parameters have value limitations

NameValues
mode
ValueDescription
staffWiseStaff-Wise voices
barWiseBar-Wise voices

Example:

00:00
00:00
\title "Staff Wise Voices"
\voiceMode staffWise
// Voice 1
\voice
// Bar 1 Voice 1
C4*4 |
// Bar 2 Voice 1
C5*4 |
// Bar 3 Voice 1
C6*4
// Voice 2
\voice
// Bar 1 Voice 2
C3*4 |
// Bar 2 Voice 2
C4*4 |
// Bar 3 Voice 2
C5 * 4
00:00
00:00
\title "Bar Wise Voices"
\voiceMode barWise
// Bar 1
// Bar 1 Voice 1
\voice
C4*4
// Bar 1 Voice 2
\voice
C3*4
|
// Bar 2
// Bar 2 Voice 1
\voice
C5*4
// Bar 2 Voice 2
\voice
C4*4
|
// Bar 3
// Bar 3 Voice 1
\voice
C6*4
// Bar 3 Voice 2
\voice
C5 * 4

\barNumberDisplayโ€‹

Scope: Bar metadata

Syntax
\barNumberDisplay mode

Description: Sets the display mode for bar numbers.

Parameters:

NameDescriptionTypeRequired
modeThe mode to useallBars|firstOfSystem|hideyes

Parameter Values:

Following parameters have value limitations

NameValues
mode
ValueDescription
allBarsAll bars
firstOfSystemFirst bar of every system
hideHide

Example:

00:00
00:00
\defaultBarNumberDisplay hide
\track { defaultsystemslayout 3 }
C4.1 | \barNumberDisplay allBars C4.1 | C4.1 |
\barNumberDisplay firstOfSystem C4.1 | \barNumberDisplay firstOfSystem C4.1 | C4.1
00:00
00:00
\defaultBarNumberDisplay firstOfSystem
\track { defaultsystemslayout 3 }
C4.1 | \barNumberDisplay allBars C4.1 | C4.1 |
\barNumberDisplay hide C4.1 | C4.1 | C4.1

\beamingโ€‹

Scope: Bar metadata

Syntax
\beaming (duration groups)

Description: Defines a custom beaming rule defining how beams of certain durations should be beamed.

To define how beats should be beamed we need 2 parts:

  1. A duration with which we splitup the bars
  2. A list of group sizes defining how many split-parts should be beamed together.

The beaming rules go hand-in-hand with the time signature as the rules need to properly define the groups for the whole beat.

Let's take a simple example of a 4/4 time signature. If we want to ensure that the beats within the quarter notes are beamed together we can write variants like this:

a. \beaming (4 1 1 1 1) b. \beaming (8 2 2 2 2) c. \beaming (16 4 4 4 4)

We slice the bar into 4, 8 or 16 parts. Then we add "groups" to those parts. If two beats start in the same group, they can be beamed together. Simple as that.

There are some common guidelines on how beaming "should be done" and alphaTab ships a wide range of defaults. But in case of more specialized time signatures, you can also customize the beaming as you need by slicing the bar and grouping the beats as needed.

Parameters:

NameDescriptionTypeRequired
durationThe note duration defining the smallest group sizeNumberyes
groupsFor every group the number of notes contained in the group.Number[]no

Example:

00:00
00:00
\ts (4 4)
\beaming (8 4 2 2)
C4.8 * 8 |

\ts (4 4)
\beaming (8 4 4)
C4.8 * 8

\barNumberโ€‹

Scope: Bar metadata

Syntax
// [1]:
\barNumber text
// [2]:
\barNumber number

Description: Sets the bar number display.

Parameters:

OverloadNameDescriptionTypeRequired
[1]textTHe custom text shown instead of the numberStringyes
[2]numberThe new number (affects subsequent counting)Numberyes

Example:

00:00
00:00
// anacrusis (no number)
\ac
C4.1
|
// standard bar number 1
C4
|
// custom text instead of bar number 2
\barNumber "Hello"
C4
|
// a jump to 10
\barNumber 10
C4
|
// now becomes 11 after the customization before
C4

\barDisplayโ€‹

Scope: Bar metadata

Syntax
\barDisplay (staffTypes)

Description: Defines the display of elements like clefs, key signatures, time signatures and bar numbers for the current bar.

The arguments select the staff types to which the properties apply. If no staff types are specified, every property applies to all staff types supporting the related element.

All properties are optional. Properties which are not specified are inherited from \staffDisplay and \defaultStaffDisplay. The values only apply to the bar they are specified on.

Parameters:

NameDescriptionTypeRequired
staffTypesThe staff types to which the properties apply. If omitted, every property applies to all staff types supporting it.score|tabs|slash|numbered[]no

Parameter Values:

Following parameters have value limitations

NameValues
staffTypes
ValueDescription
scoreStandard notation
tabsGuitar tablature
slashSlash notation
numberedNumbered notation (Jianpu)

Example:

00:00
00:00
\track
\staff {score tabs}
\ks D 3.3.4 3.3 3.3 3.3 |
\barDisplay score { ksVisibility false } \ks A 3.3 3.3 3.3 3.3 |
3.3 3.3 3.3 3.3

Properties:

clefVisibilityโ€‹

Scope: Bar metadata

Syntax
// [1]:
clefVisibility ()
// [2]:
clefVisibility visibility
// [3]:
clefVisibility visibility
// [4]:
clefVisibility visibility

Description: Show or hide the clef. Supported staff types: score, tabs.

Parameters:

OverloadNameDescriptionTypeRequired
[2]visibilityWhether the clef is shown"true"|"false"yes
[3]visibilityWhether the clef is showntrue|falseyes
[4]visibilityWhether the clef is shown1|0yes

Parameter Values:

Following parameters have value limitations

OverloadNameValues
[2]visibility
ValueDescription
"true"Show the clef
"false"Hide the clef
[3]visibility
ValueDescription
trueShow the clef
falseHide the clef
[4]visibility
ValueDescription
1Show the clef
0Hide the clef

Example:

00:00
00:00
\track { defaultSystemsLayout 2 }
\staff {score tabs}
\ks D 3.3.4 r 3.3 3.3 | 3.3.4 3.3 r 3.3 | \barDisplay { clefVisibility false } \ts (3 4) \ks A 3.3.4 3.3 r | 3.3.4 r 3.3

clefPlacementโ€‹

Scope: Bar metadata

Syntax
clefPlacement placement

Description: Show the clef on all staves or only on the primary (topmost) staff. Supported staff types: score, tabs.

Parameters:

NameDescriptionTypeRequired
placementOn which staves the clef is shownallStaves|primaryyes

Parameter Values:

Following parameters have value limitations

NameValues
placement
ValueDescription
allStavesAll staves
primaryOnly the primary (topmost) staff

Example:

00:00
00:00
\track { defaultSystemsLayout 2 }
\staff {score tabs}
\ks D 3.3.4 r 3.3 3.3 | 3.3.4 3.3 r 3.3 | \barDisplay { clefPlacement primary } \ts (3 4) \ks A 3.3.4 3.3 r | 3.3.4 r 3.3

clefSystemsโ€‹

Scope: Bar metadata

Syntax
clefSystems systems

Description: Show the clef on all systems or only on the first system. Supported staff types: score, tabs.

Parameters:

NameDescriptionTypeRequired
systemsOn which systems the clef is shownallSystems|firstSystemOnlyyes

Parameter Values:

Following parameters have value limitations

NameValues
systems
ValueDescription
allSystemsAll systems
firstSystemOnlyOnly the first system

Example:

00:00
00:00
\track { defaultSystemsLayout 2 }
\staff {score tabs}
\ks D 3.3.4 r 3.3 3.3 | 3.3.4 3.3 r 3.3 | \barDisplay { clefSystems firstSystemOnly } \ts (3 4) \ks A 3.3.4 3.3 r | 3.3.4 r 3.3

ksVisibilityโ€‹

Scope: Bar metadata

Syntax
// [1]:
ksVisibility ()
// [2]:
ksVisibility visibility
// [3]:
ksVisibility visibility
// [4]:
ksVisibility visibility

Description: Show or hide the key signature. Supported staff types: score, slash.

Parameters:

OverloadNameDescriptionTypeRequired
[2]visibilityWhether the key signature is shown"true"|"false"yes
[3]visibilityWhether the key signature is showntrue|falseyes
[4]visibilityWhether the key signature is shown1|0yes

Parameter Values:

Following parameters have value limitations

OverloadNameValues
[2]visibility
ValueDescription
"true"Show the key signature
"false"Hide the key signature
[3]visibility
ValueDescription
trueShow the key signature
falseHide the key signature
[4]visibility
ValueDescription
1Show the key signature
0Hide the key signature

Example:

00:00
00:00
\track { defaultSystemsLayout 2 }
\staff {score tabs}
\ks D 3.3.4 r 3.3 3.3 | 3.3.4 3.3 r 3.3 | \barDisplay { ksVisibility false } \ts (3 4) \ks A 3.3.4 3.3 r | 3.3.4 r 3.3

ksPlacementโ€‹

Scope: Bar metadata

Syntax
ksPlacement placement

Description: Show the key signature on all staves or only on the primary (topmost) staff. Supported staff types: score, slash.

Parameters:

NameDescriptionTypeRequired
placementOn which staves the key signature is shownallStaves|primaryyes

Parameter Values:

Following parameters have value limitations

NameValues
placement
ValueDescription
allStavesAll staves
primaryOnly the primary (topmost) staff

Example:

00:00
00:00
\track { defaultSystemsLayout 2 }
\staff {score tabs}
\ks D 3.3.4 r 3.3 3.3 | 3.3.4 3.3 r 3.3 | \barDisplay { ksPlacement primary } \ts (3 4) \ks A 3.3.4 3.3 r | 3.3.4 r 3.3

ksSystemsโ€‹

Scope: Bar metadata

Syntax
ksSystems systems

Description: Show the key signature on all systems or only on the first system. Supported staff types: score, slash.

Parameters:

NameDescriptionTypeRequired
systemsOn which systems the key signature is shownallSystems|firstSystemOnlyyes

Parameter Values:

Following parameters have value limitations

NameValues
systems
ValueDescription
allSystemsAll systems
firstSystemOnlyOnly the first system

Example:

00:00
00:00
\track { defaultSystemsLayout 2 }
\staff {score tabs}
\ks D 3.3.4 r 3.3 3.3 | 3.3.4 3.3 r 3.3 | \barDisplay { ksSystems firstSystemOnly } \ts (3 4) \ks A 3.3.4 3.3 r | 3.3.4 r 3.3

tsVisibilityโ€‹

Scope: Bar metadata

Syntax
// [1]:
tsVisibility ()
// [2]:
tsVisibility visibility
// [3]:
tsVisibility visibility
// [4]:
tsVisibility visibility

Description: Show or hide the time signature. Supported staff types: score, tabs, slash, numbered.

Parameters:

OverloadNameDescriptionTypeRequired
[2]visibilityWhether the time signature is shown"true"|"false"yes
[3]visibilityWhether the time signature is showntrue|falseyes
[4]visibilityWhether the time signature is shown1|0yes

Parameter Values:

Following parameters have value limitations

OverloadNameValues
[2]visibility
ValueDescription
"true"Show the time signature
"false"Hide the time signature
[3]visibility
ValueDescription
trueShow the time signature
falseHide the time signature
[4]visibility
ValueDescription
1Show the time signature
0Hide the time signature

Example:

00:00
00:00
\track { defaultSystemsLayout 2 }
\staff {score tabs}
\ks D 3.3.4 r 3.3 3.3 | 3.3.4 3.3 r 3.3 | \barDisplay { tsVisibility false } \ts (3 4) \ks A 3.3.4 3.3 r | 3.3.4 r 3.3

tsPlacementโ€‹

Scope: Bar metadata

Syntax
tsPlacement placement

Description: Show the time signature on all staves or only on the primary (topmost) staff. Supported staff types: score, tabs, slash, numbered.

Parameters:

NameDescriptionTypeRequired
placementOn which staves the time signature is shownallStaves|primaryyes

Parameter Values:

Following parameters have value limitations

NameValues
placement
ValueDescription
allStavesAll staves
primaryOnly the primary (topmost) staff

Example:

00:00
00:00
\track { defaultSystemsLayout 2 }
\staff {score tabs}
\ks D 3.3.4 r 3.3 3.3 | 3.3.4 3.3 r 3.3 | \barDisplay { tsPlacement primary } \ts (3 4) \ks A 3.3.4 3.3 r | 3.3.4 r 3.3

tsSystemsโ€‹

Scope: Bar metadata

Syntax
tsSystems systems

Description: Show the time signature on all systems or only on the first system. Supported staff types: score, tabs, slash, numbered.

Parameters:

NameDescriptionTypeRequired
systemsOn which systems the time signature is shownallSystems|firstSystemOnlyyes

Parameter Values:

Following parameters have value limitations

NameValues
systems
ValueDescription
allSystemsAll systems
firstSystemOnlyOnly the first system

Example:

00:00
00:00
\track { defaultSystemsLayout 2 }
\staff {score tabs}
\ks D 3.3.4 r 3.3 3.3 | 3.3.4 3.3 r 3.3 | \barDisplay { tsSystems firstSystemOnly } \ts (3 4) \ks A 3.3.4 3.3 r | 3.3.4 r 3.3

barNumberโ€‹

Scope: Bar metadata

Syntax
barNumber mode

Description: Set how bar numbers are shown. Supported staff types: all.

Parameters:

NameDescriptionTypeRequired
modeThe mode to useallBars|firstOfSystem|hideyes

Parameter Values:

Following parameters have value limitations

NameValues
mode
ValueDescription
allBarsAll bars
firstOfSystemFirst bar of every system
hideHide

Example:

00:00
00:00
\track { defaultSystemsLayout 2 }
\staff {score tabs}
\ks D 3.3.4 r 3.3 3.3 | 3.3.4 3.3 r 3.3 | \barDisplay { barNumber allBars } \ts (3 4) \ks A 3.3.4 3.3 r | 3.3.4 r 3.3