From e7aa36e25e54ab8e3364b4e916fb3733b41cf294 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Wed, 7 Sep 2011 16:47:26 +0200 Subject: [PATCH] Loaded chords sound very deep --- Filters/VLMusicXMLType.reader | 4 ++-- Sources/VLPitchName.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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;