Reply To: Storing received sysex dump as memoryblock then process

Home Forums General Programming Storing received sysex dump as memoryblock then process Reply To: Storing received sysex dump as memoryblock then process

#118910
samoht
Participant
  • Topics: 1
  • Replies: 54
  • Total: 55

Hi Damien, Dnaldoog, Possemo: this is working for me;

midiMessageReceived = function(midi)�

local s = midi:getSize()
local Id1 = midi:getLuaData():getByte(5)
local Id2 = midi:getLuaData():getByte(6)
�
if s == 60 then
 	   if Id1 == 0x10 then
    		if Id2 == 0x10
			then
				t1Nibbles = midi:getData():getRange(8, 24)
				--clear()
			elseif Id2 == 0x11 then
				t21Nibbles = midi:getData():getRange(8, 24)
				--clear()
			elseif Id2 == 0x12 then
				t3Nibbles = midi:getData():getRange(8, 24)
				--clear()
			elseif Id2 == 0x13 then
				t41Nibbles = midi:getData():getRange(8, 24)
				--clear()
			elseif Id2 == 0x14 then
				t51Nibbles = midi:getData():getRange(8, 24)
				--clear()
			elseif Id2 == 0x15 then
				t61Nibbles = midi:getData():getRange(8, 24)
				--clear()
			end
		end
	end�
end --f
  • This reply was modified 6 months, 4 weeks ago by samoht.
Do NOT follow this link or you will be banned from the site!