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

Method getTextForTuning

packages/alphatab/src/model/Tuning.ts:16–19  ·  view source on GitHub ↗
(tuning: number, includeOctave: boolean)

Source from the content-addressed store, hash-verified

14 public static readonly noteNames: string[] = ['C', 'Db', 'D', 'Eb', 'E', 'F', 'Gb', 'G', 'Ab', 'A', 'Bb', 'B'];
15
16 public static getTextForTuning(tuning: number, includeOctave: boolean): string {
17 const parts = Tuning.getTextPartsForTuning(tuning);
18 return includeOctave ? parts.join('') : parts[0];
19 }
20
21 public static getTextPartsForTuning(tuning: number, octaveShift: number = -1): string[] {
22 const octave: number = (tuning / 12) | 0;

Callers 5

testFunction · 0.80
_noteMethod · 0.80
_createGlyphsMethod · 0.80

Calls 2

getTextPartsForTuningMethod · 0.80
joinMethod · 0.45

Tested by 1

testFunction · 0.64