Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BR_GetMouseCursorContext()_if same ccLane is seen >1 BUG #1917

Open
olshalom opened this issue Jan 1, 2025 · 0 comments
Open

BR_GetMouseCursorContext()_if same ccLane is seen >1 BUG #1917

olshalom opened this issue Jan 1, 2025 · 0 comments

Comments

@olshalom
Copy link

olshalom commented Jan 1, 2025

If same ccLane is seen >1 in MidiEditor BR_GetMouseCursorContext() doesn't recognize the 2nd following lane.
Only the first.

Also in the height calculation the 2nd lane of the same CC is missing:

BR_GetMouseCursorContext_if same ccLane is seen greater than one BUG

As seen in the GIF, this also affects returned values of functions like BR_GetMouseCursorContext_MIDI().

-- 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)

  reaper.defer(main)
end

reaper.defer(main)

Sexan already ran into the issue and reported about it when he was developing his PIE script.
All scripts using this function will be affected under certain circumstances about this bug.

I hope this helps to make this very useful functions even more useful.

Best regards, Oliver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant