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.
This commit is contained in:
Tobias Doerffel
2009-03-18 00:01:23 +01:00
parent 59d20ec984
commit 617def002b

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