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

Method getDefaultTuningFor

packages/alphatab/src/model/Tuning.ts:33–39  ·  view source on GitHub ↗

* Gets the default tuning for the given string count. * @param stringCount The string count. * @returns The tuning for the given string count or null if the string count is not defined.

(stringCount: number)

Source from the content-addressed store, hash-verified

31 * @returns The tuning for the given string count or null if the string count is not defined.
32 */
33 public static getDefaultTuningFor(stringCount: number): Tuning | null {
34 if (Tuning._defaultTunings.has(stringCount)) {
35 const d = Tuning._defaultTunings.get(stringCount)!;
36 return new Tuning(d.name, d.tunings, d.isStandard);
37 }
38 return null;
39 }
40
41 /**
42 * Gets a list of all tuning presets for a given stirng count.

Callers 4

_newTrackMethod · 0.80
_detectTuningForStaffMethod · 0.80

Calls 2

getMethod · 0.65
hasMethod · 0.45

Tested by

no test coverage detected