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

Method getTextPartsForTuning

packages/alphatab/src/model/Tuning.ts:21–26  ·  view source on GitHub ↗
(tuning: number, octaveShift: number = -1)

Source from the content-addressed store, hash-verified

19 }
20
21 public static getTextPartsForTuning(tuning: number, octaveShift: number = -1): string[] {
22 const octave: number = (tuning / 12) | 0;
23 const note: number = tuning % 12;
24 const notes: string[] = Tuning.noteNames;
25 return [notes[note], (octave + octaveShift).toString()];
26 }
27
28 /**
29 * Gets the default tuning for the given string count.

Callers 1

getTextForTuningMethod · 0.80

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected