Skip to main content

findBeatWithChecker

Description​

Finds the currently played beat given a list of tracks and the current time.

findBeatWithChecker(checker: IBeatVisibilityChecker, tick: number, currentBeatHint?: MidiTickLookupFindBeatResult | null): MidiTickLookupFindBeatResult | null
ParameterSummary
checkerAll

The checker to ask whether a beat is visible and should be considered for result.

tickAll

The current time in midi ticks.

currentBeatHintAll

Used for optimized lookup during playback. By passing in a previous result lookup of the next one can be optimized using heuristics. (optional).

Returns​

The information about the current beat or null if no beat could be found.