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

Function getInstrumentSet

packages/alphatab/test/exporter/Gp7Exporter.test.ts:420–426  ·  view source on GitHub ↗
(gp: Uint8Array)

Source from the content-addressed store, hash-verified

418 });
419
420 function getInstrumentSet(gp: Uint8Array) {
421 const zip = new ZipReader(ByteBuffer.fromBuffer(gp), new Settings().importer.maxDecodingBufferSize);
422 const gpifData = zip.read().find(e => e.fileName === 'score.gpif')!.data;
423 const xml = new XmlDocument();
424 xml.parse(IOHelper.toString(gpifData, ''));
425 return readFullInstrumentSet(xml);
426 }
427
428 it('drumkit-roundtrip', async () => {
429 const inputData = await TestPlatform.loadFile('test-data/exporter/articulations.gp');

Callers 1

Calls 5

readMethod · 0.95
parseMethod · 0.95
readFullInstrumentSetFunction · 0.85
fromBufferMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected