findBeatWithChecker
Description​
Finds the currently played beat given a list of tracks and the current time.
- JavaScript
- C#
- Kotlin
findBeatWithChecker(checker: IBeatVisibilityChecker, tick: number, currentBeatHint?: MidiTickLookupFindBeatResult | null): MidiTickLookupFindBeatResult | nullMidiTickLookupFindBeatResult? FindBeatWithChecker(IBeatVisibilityChecker checker, double tick, MidiTickLookupFindBeatResult? currentBeatHint)fun findBeatWithChecker(checker: IBeatVisibilityChecker, tick: Double, currentBeatHint: MidiTickLookupFindBeatResult?): MidiTickLookupFindBeatResult?| Parameter | Summary |
|---|---|
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.