Let's started with the simplest possible case: a series of events with uniform rhythm, aligned perfectly with the grid, with uniform tempo, no anacrusis / pick up, and with the time offset of the first note equal to zero.
This may seem ridiculously simple (and almost useless) but it will allow us to define some terms and set things up.
We can then successively remove each of these simplifications.