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

Function playTo

packages/alphatab/test/audio/AlphaSynth.test.ts:310–320  ·  view source on GitHub ↗
(ticks: number)

Source from the content-addressed store, hash-verified

308
309 let i = 0;
310 function playTo(ticks: number) {
311 while (i < bankChanges.length) {
312 const nextEvent = bankChanges[i];
313 if (nextEvent.tick <= ticks) {
314 synth.processMidiMessage(nextEvent);
315 i++;
316 } else {
317 break;
318 }
319 }
320 }
321
322 playTo(0);
323 expect(synth.channelGetPresetBank(0)).toBe(77);

Callers 1

AlphaSynth.test.tsFile · 0.85

Calls 1

processMidiMessageMethod · 0.80

Tested by

no test coverage detected