(str: string)
| 167 | } |
| 168 | |
| 169 | public static getTuningForText(str: string): number { |
| 170 | const result: TuningParseResult | null = ModelUtils.parseTuning(str); |
| 171 | if (!result) { |
| 172 | return -1; |
| 173 | } |
| 174 | return result.realValue; |
| 175 | } |
| 176 | |
| 177 | public static getToneForText(note: string): TuningParseResultTone | null { |
| 178 | const noteName = note.substring(0, 1); |
no test coverage detected