Skip to main content

alphaTab.midi.BeatTickLookup

Represents the time period, for which one or multiple Beat s are played

 class BeatTickLookup

Properties​

duration​

Gets the tick duration of this lookup.

readonly duration: number;

end​

Gets or sets the end time in midi ticks at which the given beat is played.

end: number;

highlightedBeats​

Gets or sets a list of all beats that should be highlighted when the beat of this lookup starts playing. This might not mean the beats start at this position.

highlightedBeats: BeatTickLookupItem[];

nextBeat​

Gets the next BeatTickLookup which comes after this one and is in the same MasterBarTickLookup.

nextBeat: BeatTickLookup | null;

previousBeat​

Gets the preivous BeatTickLookup which comes before this one and is in the same MasterBarTickLookup.

previousBeat: BeatTickLookup | null;

start​

Gets or sets the start time in midi ticks at which the given beat is played.

start: number;

Methods​

getVisibleBeatAtStart​

Looks for the first visible beat which starts at this lookup so it can be used for cursor placement.

getVisibleBeatAtStart(visibleTracks: Set<number>): Beat | null
ParameterSummary
visibleTracksAll

The visible tracks.

Returns​

The first beat which is visible according to the given tracks or null.

getVisibleBeatAtStartWithChecker​

Looks for the first visible beat which starts at this lookup so it can be used for cursor placement.

getVisibleBeatAtStartWithChecker(checker: IBeatVisibilityChecker): Beat | null
ParameterSummary
checkerAll

The custom checker to see if a beat is visible.

Returns​

The first beat which is visible according to the given tracks or null.

highlightBeat​

Marks the given beat as highlighed as part of this lookup.

highlightBeat(beat: Beat, playbackStart: number): void
ParameterSummary
beatAll

The beat to add.

playbackStartAll

(no description)