MidiImport: fixed mistransposed notes

When importing MIDI files notes were always mistransposed by 9 semitones.
This commit fixes correction of notes' keys so imported MIDI files sound
just like they should.
(cherry picked from commit 617def002b)
This commit is contained in:
Tobias Doerffel
2009-03-18 00:01:23 +01:00
parent bf03fa7eb2
commit 844aba46b0

View File

@@ -367,7 +367,7 @@ bool midiImport::readSMF( trackContainer * _tc )
note n( noteEvt->get_duration() * ticksPerBeat,
noteEvt->get_start_time() * ticksPerBeat,
noteEvt->get_identifier() - 3,
noteEvt->get_identifier() - 12,
noteEvt->get_loud());
ch->addNote( n );