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) |