(tuning: number, octaveShift: number = -1)
| 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. |
no test coverage detected