* 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)
| 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. |
no test coverage detected