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

Reply
 
Thread Tools Display Modes
Old 10-20-2018, 09:28 AM   #1
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
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
Old 04-10-2019, 06:58 PM   #2
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
Default

I second that, some API functions to get all visible CC lanes, their order and height would be a welcomed addition.
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Reply

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 08:53 PM.


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