waddlesplash / QMidi

Qt library for MIDI output & MIDI file I/O.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QMidiFile should empty its events when loading a new file.

JosteinTopland opened this issue · comments

Events are added to any previous loaded MIDI file. Sounds a bit messy when loading a new file. How about adding fEvents.clear() in load() right before looping through the tracks, or am I missing something?

I haven't touched most of this code in years and there are probably a lot of idiotic things in it. Personally I don't think loading another file should be possible, and I might get rid of the load() function altogether and put it in the constructor.