alphaTab.rendering.BeatBounds
Represents the bounds of a single beat.
class BeatBoundsProperties​
barBounds​
Gets or sets the reference to the parent BarBounds .
beat​
Gets or sets the beat related to this bounds.
notes​
Gets or sets the individual note positions of this beat (if CoreSettings.includeNoteBounds was set to true).
- JavaScript
- C#
- Kotlin
notes: NoteBounds[] | null;IList<NoteBounds>? Notes { get; set; }var notes: alphaTab.collections.List<NoteBounds>?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.
- JavaScript
- C#
- Kotlin
onNotesX: number;double OnNotesX { get; set; }var onNotesX: DoublerealBounds​
Gets or sets the actual bounds of the elements in this beat including whitespace areas.
visualBounds​
Gets or sets the bounds covering all visually visible elements spanning this beat.
Methods​
addNote​
Adds a new note to this bounds.
- JavaScript
- C#
- Kotlin
addNote(bounds: NoteBounds): voidvoid AddNote(NoteBounds bounds)fun addNote(bounds: NoteBounds): Unit| Parameter | Summary |
|---|---|
boundsAll | The note bounds to add. |
findNoteAtPos​
Tries to find a note at the given position.
| Parameter | Summary |
|---|---|
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.
- JavaScript
- C#
- Kotlin
finish(scale?: number): voidvoid Finish(double? scale)fun finish(scale: Double?): Unit| Parameter | Summary |
|---|---|
scaleAll | (no description) |