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

Method _parseVoice

packages/alphatab/src/importer/GpifParser.ts:1664–1675  ·  view source on GitHub ↗
(node: XmlNode)

Source from the content-addressed store, hash-verified

1662 }
1663
1664 private _parseVoice(node: XmlNode): void {
1665 const voice: Voice = new Voice();
1666 const voiceId: string = node.getAttribute('id');
1667 for (const c of node.childElements()) {
1668 switch (c.localName) {
1669 case 'Beats':
1670 this._beatsOfVoice.set(voiceId, GpifParser._splitSafe(c.innerText));
1671 break;
1672 }
1673 }
1674 this._voiceById.set(voiceId, voice);
1675 }
1676
1677 //
1678 // <Beats>...</Beats>

Callers 1

_parseVoicesMethod · 0.95

Calls 4

getAttributeMethod · 0.80
childElementsMethod · 0.80
_splitSafeMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected