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

Method calculateDuration

packages/alphatab/src/model/Bar.ts:554–563  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

552 }
553
554 public calculateDuration(): number {
555 let duration: number = 0;
556 for (const voice of this.voices) {
557 const voiceDuration: number = voice.calculateDuration();
558 if (voiceDuration > duration) {
559 duration = voiceDuration;
560 }
561 }
562 return duration;
563 }
564}

Callers 15

prepareVariantTestFunction · 0.45
prepareGraceMultiVoiceFunction · 0.45
_newBarMethod · 0.45
_parseVoiceMethod · 0.45
getRatioPositionMethod · 0.45
readScoreMethod · 0.45
addMasterBarMethod · 0.45

Calls

no outgoing calls

Tested by 2

prepareVariantTestFunction · 0.36
prepareGraceMultiVoiceFunction · 0.36