From 099123277c6a7ffbbe82aeb6aaf181cde7e116c1 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Sat, 2 May 2020 09:10:44 +0200 Subject: [PATCH] jedParser: Note lines may start with N or NOTE --- src/jedParser.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jedParser.cpp b/src/jedParser.cpp index bfc7eb5..80c5843 100644 --- a/src/jedParser.cpp +++ b/src/jedParser.cpp @@ -239,6 +239,7 @@ int JedParser::parse() * JED file end fix ETX (0x03) + file checksum + \n */ std::vectorlines; + int first_pos; do { lines = readJEDLine(); if (lines.size() == 0) @@ -246,7 +247,9 @@ int JedParser::parse() switch (lines[0][0]) { case 'N': // note - previousNote = lines[0].substr(5); + /* note may start with "N " or "NOTE " */ + first_pos = lines[0].find_first_of(' ', 0) + 1; + previousNote = lines[0].substr(first_pos); break; case 'Q': int count;