Loaded chords sound very deep

This commit is contained in:
Matthias Neeracher 2011-09-07 16:47:26 +02:00
parent d073aed5fa
commit e7aa36e25e
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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;