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)