Fix NoteTokenizer for proper consuming @B and @b note literals
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user