MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / getFermata

Method getFermata

packages/alphatab/src/model/MasterBar.ts:423–435  ·  view source on GitHub ↗

* Gets the fermata for a given beat. * @param beat The beat to get the fermata for. * @returns

(beat: Beat)

Source from the content-addressed store, hash-verified

421 * @returns
422 */
423 public getFermata(beat: Beat): Fermata | null {
424 const fermataMap = this.fermata;
425 if (fermataMap === null) {
426 return null;
427 }
428 if (fermataMap.has(beat.playbackStart)) {
429 return fermataMap.get(beat.playbackStart)!;
430 }
431 if (beat.index === 0 && fermataMap.has(0)) {
432 return fermataMap.get(0)!;
433 }
434 return null;
435 }
436
437 /**
438 * Adds the given sync point to the list of sync points for this bar.

Callers 1

finishMethod · 0.80

Calls 2

getMethod · 0.65
hasMethod · 0.45

Tested by

no test coverage detected