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_MIDI() - add Notation lane #1082

Closed
nofishonfriday opened this issue Jan 10, 2019 · 1 comment
Closed

BR_GetMouseCursorContext_MIDI() - add Notation lane #1082

nofishonfriday opened this issue Jan 10, 2019 · 1 comment
Assignees

Comments

@nofishonfriday
Copy link
Collaborator

@nofishonfriday nofishonfriday commented Jan 10, 2019

Reminder.
https://forum.cockos.com/showpost.php?p=2079929&postcount=2

Test script:

function msg(m)
  return reaper.ShowConsoleMsg(tostring(m) .. "\n")
end

lastDetailsOut = -1

function GetMouseCursorDetails()

  windowOut, segmentOut, detailsOut = reaper.BR_GetMouseCursorContext()
  
  if lastDetailsOut ~= detailsOut then
    retval, inlineEditor, noteRow, ccLane, ccLaneVal, ccLaneId = reaper.BR_GetMouseCursorContext_MIDI()
    
    msg("cc lane: " .. ccLane) -- should be 0x208 (520) for 'Notation Events' lane 
    msg("\n")
  end
  
  lastDetailsOut = detailsOut
  reaper.defer(GetMouseCursorDetails)
end

GetMouseCursorDetails()

This currently results in '-1' for the Notation events lane.

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

Successfully merging a pull request may close this issue.

None yet
1 participant