waddlesplash / QMidi

Qt library for MIDI output & MIDI file I/O.
MIT License
84 stars 38 forks source link

I found a bug and tried to fix it. #38

Open HLM-STUDIO opened 1 year ago

HLM-STUDIO commented 1 year ago

`void QMidiFile::addEvent(qint32 tick, QMidiEvent* e) { e->setTick(tick); fEvents.append(e); //(e->track() == 0) && <- I removed this one in if

if ((e->type() == QMidiEvent::Meta) && (e->number() == QMidiEvent::Tempo)) {
    fTempoEvents.append(e);
}
sort();

} ` I was using the FL to exported speed change midi and found that the speed did not change when I inport this midi. It took me four days to locate the cause and finally found it.