Old 10-19-2018, 04:27 AM   #1
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default Q: How to get MIDI channel with get_action_context ?

Hi !


get_action_concept can get MIDI CC Val,


but it can't get MIDI CC channel ?


Here is a simple code snippet:


Code:
a = {}
a.is_new_value, a.filename, a.sectionID, a.cmdID, a.mode, a.resolution, a.val = reaper.get_action_context()

function Msg(val)
  reaper.ShowConsoleMsg(tostring(val) .. "\n")
end

keys = {'is_new_value','filename','sectionID','cmdID','mode','resolution','val'}
reaper.ClearConsole()
Msg('')
for i, v in pairs(keys) do
  Msg(v .. " = " .. tostring(a[v]))
end

How would you get MIDI channel ?


Thx !
X-Raym is offline   Reply With Quote
Old 10-22-2018, 04:42 PM   #2
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

A JSFX to analyse last MIDI event channel could be output on the track as a workarround...


But it would be nice to extend reaper.action context for channel support.
X-Raym 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 07:10 AM.


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