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

Method addFermata

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

* Adds a fermata to the masterbar. * @param offset The offset of the fermata within the bar in midi ticks. * @param fermata The fermata.

(offset: number, fermata: Fermata)

Source from the content-addressed store, hash-verified

396 * @param fermata The fermata.
397 */
398 public addFermata(offset: number, fermata: Fermata): void {
399 let fermataMap = this.fermata;
400 if (fermataMap === null) {
401 fermataMap = new Map<number, Fermata>();
402 this.fermata = fermataMap;
403 }
404 fermataMap.set(offset, fermata);
405 }
406
407 /**
408 * Adds a direction to the masterbar.

Callers 3

_parseFermataMethod · 0.80
setPropertyMethod · 0.80
finishMethod · 0.80

Calls 1

setMethod · 0.45

Tested by

no test coverage detected