alphaTab.model.Bar
Description
A bar is a single block within a track, also known as Measure.
class Bar
Properties
clef | Gets or sets the clef on this bar. |
clefOttava | Gets or sets the ottava applied to the clef. |
displayScale | A relative scale for the size of the bar when displayed. The scale is relative |
displayWidth | An absolute width of the bar to use when displaying in single track display scenarios. |
id | Gets or sets the unique id of this bar. |
index | Gets or sets the zero-based index of this bar within the staff. |
isEmpty | Whether this bar is fully empty (not even having rests). |
isMultiVoice | Gets a value indicating whether this bar contains multiple voices with notes. |
isRestOnly | Whether this bar is empty or has only rests. |
masterBar | |
nextBar | Gets or sets the next bar that comes after this bar. |
previousBar | Gets or sets the previous bar that comes before this bar. |
simileMark | Gets or sets the simile mark on this bar. |
staff | Gets or sets the reference to the parent staff. |
style | The style customizations for this item. |
sustainPedals | The sustain pedal markers within this bar. |
voices | Gets or sets the list of voices contained in this bar. |
Methods
addVoice(Voice) | |
calculateDuration() | |
finish(Settings, Map<string, unknown> | null) |