Skip to content

Instantly share code, notes, and snippets.

@Neurogami
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Neurogami/11160617 to your computer and use it in GitHub Desktop.
Save Neurogami/11160617 to your computer and use it in GitHub Desktop.
function sysex_handler(message)
local s = ""
for i = 4, #message-1 do
s = s..string.char(message[i])
end
local args = {}
for arg in s:gmatch("%S+") do
table.insert(args, arg)
end
local m = args[1]
table.remove(args, 1)
_G[HANDER_PREFIX..m](args)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment