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

Method addVoice

packages/alphatab/src/model/Bar.ts:476–480  ·  view source on GitHub ↗
(voice: Voice)

Source from the content-addressed store, hash-verified

474 public style?: BarStyle;
475
476 public addVoice(voice: Voice): void {
477 voice.bar = this;
478 voice.index = this.voices.length;
479 this.voices.push(voice);
480 }
481
482 public finish(settings: Settings, sharedDataBag: Map<string, unknown> | null = null): void {
483 this._filledVoices.clear();

Callers 13

insertNewBarMethod · 0.95
buildScoreFunction · 0.95
_getOrCreateBarMethod · 0.95
_barMetaMethod · 0.95
_getBarMethod · 0.95
consolidateMethod · 0.95
_buildModelMethod · 0.80
readVoiceMethod · 0.80
_ensureVoiceMethod · 0.80
_getOrCreateVoiceMethod · 0.80
startNewVoiceMethod · 0.80

Calls 1

pushMethod · 0.45

Tested by 1

buildScoreFunction · 0.76