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

Method _parseStaves

packages/alphatab/src/importer/GpifParser.ts:926–938  ·  view source on GitHub ↗
(track: Track, node: XmlNode)

Source from the content-addressed store, hash-verified

924 }
925
926 private _parseStaves(track: Track, node: XmlNode): void {
927 let staffIndex: number = 0;
928 for (const c of node.childElements()) {
929 switch (c.localName) {
930 case 'Staff':
931 track.ensureStaveCount(staffIndex + 1);
932 const staff: Staff = track.staves[staffIndex];
933 this._parseStaff(staff, c);
934 staffIndex++;
935 break;
936 }
937 }
938 }
939
940 private _parseStaff(staff: Staff, node: XmlNode): void {
941 for (const c of node.childElements()) {

Callers 1

_parseTrackMethod · 0.95

Calls 3

_parseStaffMethod · 0.95
childElementsMethod · 0.80
ensureStaveCountMethod · 0.80

Tested by

no test coverage detected