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

Function syncPointTestScore

packages/alphatab/test/audio/SyncPoint.test.ts:86–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84 });
85
86 async function syncPointTestScore() {
87 // the testfile is built like this:
88 // we have the "expected" music sheet in syncpoints-testfile.gp
89 // this file is synchronized with an "actual" audio having completely different tempos.
90 // the file with wrong tempos used as backing track is in syncpoints-testfile-backingtrack.gp
91
92 // the backing track takes 42secs while the original sound would take 48secs
93
94 const data = await TestPlatform.loadFile('test-data/audio/syncpoints-testfile.gp');
95 const score = ScoreLoader.loadScoreFromBytes(data, new Settings());
96 return score;
97 }
98
99 it('sync-point-generation', async () => {
100 const score = await syncPointTestScore();

Callers 3

SyncPoint.test.tsFile · 0.85

Calls 2

loadScoreFromBytesMethod · 0.80
loadFileMethod · 0.45

Tested by

no test coverage detected