Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Thread Tools Display Modes
Old 10-20-2018, 09:28 AM   #1
Human being with feelings
Join Date: Jul 2009
Posts: 2,135
Default MIDI item chunk does not reflect state of MIDI editor CC lanes

REAPER's MIDI editor is frustratingly secretive about its on-screen structure, with no native API functions to get its screen coordinates or CC lane heights, for example.

To try and get these CC lane heights, SWS functions such as BR_GetMouseCursorContext_MIDI, as well as MIDI scripts such as mine, are forced to parse the state chunk of the active MIDI item, where CC lane heights are recorded in VELLANE fields.

Unfortunately, the VELLANE fields do not always accurately reflect the current state of the MIDI editor. In particular, if two or more lanes are of the same type (for example, two pitch lanes), only one of these lanes are recorded in the state chunk, and then the scripts and API functions will fail.
juliansader is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 03:54 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.