About the musical question: I am now thinking I should allow both possibilities: letting patterns fall out of sync, but also having the option of patterns staying in the measure. In case of patterns that end before the current bar ends, there would be an additional rest time at the end and before the next bar starts.