edit:
Created a bug report
here.
edit2:
See posts
#10,
#14 for Justin's helper functions.
=== original post ===
This
Code:
_nextGridPos = reaper.TimeMap2_beatsToTime(0, 0.25, 0)
should, to my understanding, give the position (in time) of the first visible grid line in my project.
It seems to work correctly for non swing grid:
However, when I set a swing grid, and run the script again, the same position is returned and not the actual position of the grid line.
Doesn't this function take swing grid into account or is it a bug in my understanding?