You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While reaper.BR_GetMouseCursorContext_MIDI() does start to return noteRow_value ~ -1 at the correct height, it doesn't start at the correct noteRow.
The Issue appear with a scale>1 on windowsOS.
On macOS it's working correctly. No clue about Linux, sorry.
The offset stays the same, even ccLanes area get changed in height.
So it seems to me the height of the transport/grid settings bar and the scrollbar is not scaled correctly.
All other values (ccLane, ccLaneVal, ccLaneId) seem correct:
-- CONSOLE OUTPUT --
function Msg(param)
reaper.ShowConsoleMsg(tostring(param).."\n")
end
function main()
reaper.ClearConsole()
local scale = select(2, reaper.ThemeLayout_GetLayout('tcp', -3))/256
--Msg(scale)
local window, segment, details = reaper.BR_GetMouseCursorContext()
local retval, inlineEditor, noteRow, ccLane, ccLaneVal, ccLaneId = reaper.BR_GetMouseCursorContext_MIDI()
Msg(segment)
Msg(ccLane)
Msg(ccLaneId)
Msg(noteRow)
reaper.defer(main)
end
reaper.defer(main)
I agree with that. If we have 125% scale on windowsOS then we get row offset +1 compare to 100%. If we have 150% scale then we get the row offset +2 more compare to 125% scale.
While reaper.BR_GetMouseCursorContext_MIDI() does start to return noteRow_value ~ -1 at the correct height, it doesn't start at the correct noteRow.
The Issue appear with a scale>1 on windowsOS.
On macOS it's working correctly. No clue about Linux, sorry.
The offset stays the same, even ccLanes area get changed in height.
So it seems to me the height of the transport/grid settings bar and the scrollbar is not scaled correctly.
All other values (ccLane, ccLaneVal, ccLaneId) seem correct:
I ran into the issue by debugging the super cool "Lasso for midi editor" script by Amely Suncroll:
https://forum.cockos.com/showthread.php?t=297070
Thanks for looking into the issue to satisfy all users of the script.
Best regards, Oliver
The text was updated successfully, but these errors were encountered: