From a8835a769793b3d0b8c201e211929ea3bbe4d67d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Przemys=C5=82aw=20Pluta?= Date: Fri, 6 Mar 2020 23:11:13 +0100 Subject: [PATCH] Fix NoteTokenizer for proper consuming @B and @b note literals --- src/main/kotlin/dsl/token/tokenizer/NoteTokenizer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/dsl/token/tokenizer/NoteTokenizer.kt b/src/main/kotlin/dsl/token/tokenizer/NoteTokenizer.kt index f269cdb..4b00b62 100644 --- a/src/main/kotlin/dsl/token/tokenizer/NoteTokenizer.kt +++ b/src/main/kotlin/dsl/token/tokenizer/NoteTokenizer.kt @@ -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