View Single Post
Old 12-03-2018, 02:16 AM   #2501
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

@Stevie
I can see in yout quantize function that you use the Snap to Grid native function. Use this one instead (from SWS):

Code:
 reaper.BR_GetClosestGridDivision( position )

Quote:
[BR] Get closest grid division to position. Note that this functions is different from SnapToGrid in two regards. SnapToGrid() needs snap enabled to work and this one works always. Secondly, grid divisions are different from grid lines because some grid lines may be hidden due to zoom level - this function ignores grid line visibility and always searches for the closest grid division at given position.
X-Raym is offline   Reply With Quote