diff --git a/Filters/VLMusicXMLType.reader b/Filters/VLMusicXMLType.reader index 199bc8c..d9f141b 100755 --- a/Filters/VLMusicXMLType.reader +++ b/Filters/VLMusicXMLType.reader @@ -366,9 +366,9 @@ class MusicXMLListener @note['visual'] = VL::Want2Flat end when 'root-step' - @note['pitch'] = PITCH[@text] + @note['pitch'] = PITCH[@text]+60 when 'bass-step' - @note['root'] = PITCH[@text] + @note['root'] = PITCH[@text]+48 when 'bass-alter' @note['root'] += @text.to_i if @text.to_i != 0 diff --git a/Sources/VLPitchName.cpp b/Sources/VLPitchName.cpp index 9885a1d..33ef4d9 100644 --- a/Sources/VLPitchName.cpp +++ b/Sources/VLPitchName.cpp @@ -272,6 +272,7 @@ int8_t VLParseChord(std::string & str, uint16_t * accidental, uint32_t * st if (*rootPitch < 0) return kPitchError; str.erase(root, 1); + *rootPitch -= VLNote::kOctave; } else { *rootPitch = VLNote::kNoPitch; *rootAccidental = 0;