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

Method exportFlatSyncPoints

packages/alphatab/src/model/Score.ts:483–499  ·  view source on GitHub ↗

* Exports all sync points in this song to a FlatSyncPoint list. * @since 1.6.0

()

Source from the content-addressed store, hash-verified

481 * @since 1.6.0
482 */
483 public exportFlatSyncPoints(): FlatSyncPoint[] {
484 const syncPoints: FlatSyncPoint[] = [];
485 for (const masterBar of this.masterBars) {
486 const masterBarSyncPoints = masterBar.syncPoints;
487 if (masterBarSyncPoints) {
488 for (const syncPoint of masterBarSyncPoints) {
489 syncPoints.push({
490 barIndex: masterBar.index,
491 barOccurence: syncPoint.syncPointValue!.barOccurence,
492 barPosition: syncPoint.ratioPosition,
493 millisecondOffset: syncPoint.syncPointValue!.millisecondOffset
494 });
495 }
496 }
497 }
498 return syncPoints;
499 }
500}

Callers 2

testAudioExportFunction · 0.80
buildSyncPointNodesMethod · 0.80

Calls 1

pushMethod · 0.45

Tested by 1

testAudioExportFunction · 0.64