Does midi tempo depend on the time signature?

No I would say, you're not expected to play twice as fast just because you change the time signature of a melody from 4/4 to 2/4. It's supposed to have the same speed in bpm (e.g 100) regardless of if it's played in 5/4 or 7/12 beats per bar or whatever.

So you could just as well skip the line

findAllTimeSigEvents (tempoEvents);

in MidiFile::convertTimestampTicksToSeconds(). It won't change the tempo of the midi file, just eat cpu cycles. And after all, if the time signature event indeed was supposed to contribute to the timestamp calculations, wouldn't you have to inspect its content?

 

Seeing as tempo is measured in BPM, I'd be surprised if the time signature affected it. For example, if you went from 2/4 to 4/4, the BPM would not change whilst the number of bars would.

So based upon this, it looks like you're right! We'll investigate further just to be sure, and if it turns out to be superfluous, remove it.

Thank you!