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

Method updateSettings

packages/alphatab/src/AlphaTabApiBase.ts:549–563  ·  view source on GitHub ↗

* Applies any changes that were done to the settings object. * @remarks * It also informs the renderer about any new values to consider. * By default alphaTab will not trigger any re-rendering or settings update just if the settings object itself was changed. This method must

()

Source from the content-addressed store, hash-verified

547 * ```
548 */
549 public updateSettings(): void {
550 this.settings.handleBackwardsCompatibility();
551
552 const score = this.score;
553 if (score) {
554 ModelUtils.applyPitchOffsets(this.settings, score);
555 }
556
557 this._updateRenderer();
558
559 this._renderer.updateSettings(this.settings);
560 this._setupOrDestroyPlayer();
561
562 this._onSettingsUpdated();
563 }
564
565 private _updateRenderer() {
566 const renderer = this._renderer;

Callers

nothing calls this directly

Calls 6

_updateRendererMethod · 0.95
_setupOrDestroyPlayerMethod · 0.95
_onSettingsUpdatedMethod · 0.95
applyPitchOffsetsMethod · 0.80
updateSettingsMethod · 0.65

Tested by

no test coverage detected