Quote:
Originally Posted by MusoBob
Script: mpl_Remove selected takes MIDI ProgramChange.lua
Script: mpl_Remove MIDI ProgramChange.lua
I'd like to know how to get the first program number with script.
|
No guru here, but looking at the'Remove MIDI ProgramChange' script, seems you can get the Program value from 2nd item in that msg,..
Code:
in function FilterMIDIData...
...
if msg:len() > 1 then
if msg:byte(1)>>4 == exclude_msg_type then
print(msg:byte(2)) -- Get Program value
--msg = "" --< ignore for this test
end
end
...