Skip to content

BR_GetMouseCursorContext_MIDI() - add Notation lane #1082

@nofishonfriday

Description

@nofishonfriday

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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions