Skip to main content

alphaTab.rendering.BeatBounds

Represents the bounds of a single beat.

 class BeatBounds

Properties​

barBounds​

Gets or sets the reference to the parent BarBounds .

barBounds: BarBounds;

beat​

Gets or sets the beat related to this bounds.

beat: Beat;

notes​

Gets or sets the individual note positions of this beat (if CoreSettings.includeNoteBounds was set to true).

notes: NoteBounds[] | null;

onNotesX​

Gets or sets x-position where the timely center of the notes for this beat is. This is where the cursor should be at the time when this beat is played.

onNotesX: number;

realBounds​

Gets or sets the actual bounds of the elements in this beat including whitespace areas.

realBounds: Bounds;

visualBounds​

Gets or sets the bounds covering all visually visible elements spanning this beat.

visualBounds: Bounds;

Methods​

addNote​

Adds a new note to this bounds.

addNote(bounds: NoteBounds): void
ParameterSummary
boundsAll

The note bounds to add.

findNoteAtPos​

Tries to find a note at the given position.

findNoteAtPos(x: number, y: number): Note | null
ParameterSummary
xAll

The X-position of the note to find.

yAll

The Y-position of the note to find.

Returns​

The note at the given position or null if no note was found, or the note lookup was not enabled before rendering.

finish​

Finishes the lookup object and optimizes itself for fast access.

finish(scale?: number): void
ParameterSummary
scaleAll

(no description)