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

Function init

packages/alphatab/src/importer/ScoreImporter.ts:17–26  ·  view source on GitHub ↗

* Initializes the importer with the given data and settings.

(data: IReadable, settings: Settings)

Source from the content-addressed store, hash-verified

15 * Initializes the importer with the given data and settings.
16 */
17 public init(data: IReadable, settings: Settings): void {
18 if (data instanceof ThrowingReadable) {
19 this.data = data;
20 } else {
21 this.data = new ThrowingReadable(data);
22 }
23 this.settings = settings;
24 // when beginning reading a new score we reset the IDs.
25 Score.resetIds();
26 }
27
28 public abstract get name(): string;
29

Callers

nothing calls this directly

Calls 1

resetIdsMethod · 0.45

Tested by

no test coverage detected