MIDI tempo detection issue (1/4 meter?)

For example, how would it know if you had grace notes or pickup beats? That marker is just a placeholder. You need to move it to the first 1 beat, and set the appropriate time sig.