Thanks.
Hm..I'm a bit surprised to be honest.
Setting swing affects beats positions (edit: or rather sub-beats positions) which I'm evaluating with this function, no? Hence I'd have expected this function respects a swing grid.
Anyway, the actual issue is that some SWS API functions which use this (e.g.
BR_GetNextGridDivision() are broken with a swing grid set currently because of this.
https://github.com/reaper-oss/sws/issues/1137
Any suggestion for a fix by chance?
(I guess that's better asked in the scripters/extension forum though.)
edit2:
Alternatively, since Reaper has the actual grid positions present/stored anyway I suppose, couldn't there be an additional API function to get them rather having to do our own swing calculation?