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

Method loadAlphaTex

packages/alphatab/src/importer/ScoreLoader.ts:24–29  ·  view source on GitHub ↗

* Loads the given alphaTex string. * @param tex The alphaTex string. * @param settings The settings to use for parsing. * @returns The parsed {@see Score}.

(tex: string, settings?: Settings)

Source from the content-addressed store, hash-verified

22 * @returns The parsed {@see Score}.
23 */
24 public static loadAlphaTex(tex: string, settings?: Settings): Score {
25 const parser = new AlphaTexImporter();
26 parser.logErrors = true;
27 parser.initFromString(tex, settings ?? new Settings());
28 return parser.readScore();
29 }
30
31 /**
32 * Loads a score asynchronously from the given datasource

Callers 14

trimTestFunction · 0.80
testAlphaTexRepeatFunction · 0.80
parseTexFunction · 0.80
testFunction · 0.80
SyncPoint.test.tsFile · 0.80
AlphaSynth.test.tsFile · 0.80

Calls 2

initFromStringMethod · 0.95
readScoreMethod · 0.95

Tested by 5

trimTestFunction · 0.64
testAlphaTexRepeatFunction · 0.64
parseTexFunction · 0.64
testFunction · 0.64
testRoundTripEqualFunction · 0.64