Fix NoteTokenizer for proper consuming @B and @b note literals

This commit is contained in:
2020-03-06 23:11:13 +01:00
parent 43083ee905
commit a8835a7697

View File

@@ -20,7 +20,7 @@ class NoteTokenizer : Tokenizer {
consumedChars += 1
// Note basic pitch
if(listOf('c', 'd', 'e', 'f', 'g', 'a', 'h').contains(input[current+consumedChars].toLowerCase())) {
if(listOf('c', 'd', 'e', 'f', 'g', 'a', 'h', 'b').contains(input[current+consumedChars].toLowerCase())) {
rawValue += input[current+consumedChars]
notePitch = input[current+consumedChars].toString()
consumedChars += 1