Hi,
a way that has been used in the past is to control the m4l device tempo with a midi clip (with 16th note per step for example). You can then apply the groove to the control-clip. If it's only about swing, just add an offset to notes on every second position of your grid.
O.