alphaTab.rendering.BoundsLookup
(no description)
class BoundsLookupProperties​
isFinished​
Gets or sets a value indicating whether this lookup was finished already.
- JavaScript
- C#
- Kotlin
isFinished: boolean;bool IsFinished { get; set; }var isFinished: BooleanstaffSystems​
Gets a list of all individual staff systems contained in the rendered music notation.
- JavaScript
- C#
- Kotlin
staffSystems: StaffSystemBounds[];IList<StaffSystemBounds> StaffSystems { get; set; }var staffSystems: alphaTab.collections.List<StaffSystemBounds>Methods​
addBeat​
Adds a new beat to the lookup.
- JavaScript
- C#
- Kotlin
addBeat(bounds: BeatBounds): voidvoid AddBeat(BeatBounds bounds)fun addBeat(bounds: BeatBounds): Unit| Parameter | Summary |
|---|---|
boundsAll | The beat bounds to add. |
addMasterBar​
Adds a new master bar to the lookup.
- JavaScript
- C#
- Kotlin
addMasterBar(bounds: MasterBarBounds): voidvoid AddMasterBar(MasterBarBounds bounds)fun addMasterBar(bounds: MasterBarBounds): Unit| Parameter | Summary |
|---|---|
boundsAll | The master bar bounds to add. |
addStaffSystem​
Adds a new staff sytem to the lookup.
- JavaScript
- C#
- Kotlin
addStaffSystem(bounds: StaffSystemBounds): voidvoid AddStaffSystem(StaffSystemBounds bounds)fun addStaffSystem(bounds: StaffSystemBounds): Unit| Parameter | Summary |
|---|---|
boundsAll | The staff system bounds to add. |
findBeat​
Tries to find the bounds of a given beat.
- JavaScript
- C#
- Kotlin
findBeat(beat: Beat): BeatBounds | nullBeatBounds? FindBeat(Beat beat)fun findBeat(beat: Beat): BeatBounds?| Parameter | Summary |
|---|---|
beatAll | The beat to find. |
Returns​
The beat bounds if it was rendered, or null if no boundary information is available.
findBeats​
Tries to find the bounds of a given beat.
- JavaScript
- C#
- Kotlin
findBeats(beat: Beat): BeatBounds[] | nullIList<BeatBounds>? FindBeats(Beat beat)fun findBeats(beat: Beat): alphaTab.collections.List<BeatBounds>?| Parameter | Summary |
|---|---|
beatAll | The beat to find. |
Returns​
The beat bounds if it was rendered, or null if no boundary information is available.
findMasterBar​
Tries to find the master bar bounds by a given master bar.
- JavaScript
- C#
- Kotlin
findMasterBar(bar: MasterBar): MasterBarBounds | nullMasterBarBounds? FindMasterBar(MasterBar bar)fun findMasterBar(bar: MasterBar): MasterBarBounds?| Parameter | Summary |
|---|---|
barAll | The master bar to find. |
Returns​
The master bar bounds if it was rendered, or null if no boundary information is available.
findMasterBarByIndex​
Tries to find the master bar bounds by a given index.
- JavaScript
- C#
- Kotlin
findMasterBarByIndex(index: number): MasterBarBounds | nullMasterBarBounds? FindMasterBarByIndex(double index)fun findMasterBarByIndex(index: Double): MasterBarBounds?| Parameter | Summary |
|---|---|
indexAll | The index of the master bar to find. |
Returns​
The master bar bounds if it was rendered, or null if no boundary information is available.
finish​
Finishes the lookup for optimized access.
- JavaScript
- C#
- Kotlin
finish(scale?: number): voidvoid Finish(double? scale)fun finish(scale: Double?): Unit| Parameter | Summary |
|---|---|
scaleAll | (no description) |
fromJson​
(no description)
static fromJson(json: unknown, score: Score): BoundsLookup| Parameter | Summary |
|---|---|
jsonAll | (no description) |
scoreAll | (no description) |
getBeatAtPos​
Tries to find a beat at the given absolute position.
| Parameter | Summary |
|---|---|
xAll | The absolute X-position of the beat to find. |
yAll | The absolute Y-position of the beat to find. |
Returns​
The beat found at the given position or null if no beat could be found.
getNoteAtPos​
Tries to find the note at the given position using the given beat for fast access.
Use findBeat to find a beat for a given position first.
| Parameter | Summary |
|---|---|
beatAll | The beat containing the note. |
xAll | The X-position of the note. |
yAll | The Y-position of the note. |
Returns​
The note at the given position within the beat.
toJson​
(no description)
toJson(): unknown