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

Method _newBar

packages/alphatab/src/importer/CapellaParser.ts:557–564  ·  view source on GitHub ↗
(staff: Staff, voiceIndex: number)

Source from the content-addressed store, hash-verified

555 private _currentVoice!: Voice;
556
557 private _newBar(staff: Staff, voiceIndex: number) {
558 this._currentVoiceState.currentBarIndex++;
559 this._currentBar = this._getOrCreateBar(staff, this._currentVoiceState.currentBarIndex);
560 this._currentVoiceState.currentBarDuration = this._currentBar.masterBar.calculateDuration(false);
561 this._currentVoiceState.currentBarComplete = false;
562 this._currentVoiceState.currentPosition = 0;
563 this._ensureVoice(staff, voiceIndex);
564 }
565
566 private _parseVoice(
567 staffId: string,

Callers 1

_parseVoiceMethod · 0.95

Calls 3

_getOrCreateBarMethod · 0.95
_ensureVoiceMethod · 0.95
calculateDurationMethod · 0.45

Tested by

no test coverage detected