Hi , you need to create LUA function and selest it in the main panel recive message method.
Example routine could be like this:
--
-- Called when a panel receives a midi message (does not need to match any modulator mask)
-- @midi CtrlrMidiMessage object
--
Recivelist = function(midiMessage)
if panel:getRestoreState() == true or panel:getProgramState() == true then
return
end
local messageType = midiMessage:getType()
if (messageType == 5 and midiMessage:getSize()~=2) then
local s = midiMessage:getSize() -- Size of the midi dump received
console ("memory block is "..midiMessage:getSize().." bytes, data:")
local recKPAID = midiMessage:getLuaData():getRange(1,3)
local recFunctionCode = midiMessage:getLuaData():getByte(6)
local Instance = midiMessage:getLuaData():getByte(7)
local recNrpnMSB = midiMessage:getLuaData():getByte(8)
local recNrpnLSB = midiMessage:getLuaData():getByte(9)
if (recFunctionCode == 0x7e and Instance == 0x00) then
if (recNrpnMSB == 04 and recNrpnLSB ==03) then
local partialmessage=midiMessage:getData():getRange(10,s-12)
elseif (recNrpnMSB == 06 and recNrpnLSB ==03) then
else
end
end
end
end
-
This reply was modified 5 years, 1 month ago by daimondamps.