engine.name = "Rhodes" local MusicUtil = require "musicutil" function redraw() screen.clear() screen.move(64, 32) screen.text_center("rhodes.") screen.update() end function init () redraw() m = midi.connect(1) m.event = function (a) b = midi.to_msg(a) if b.type == "note_on" then engine.note_on(b.note, b.vel or 60) elseif b.type == "note_off" then engine.note_off(b.note) end end end -- Local Variables: -- compile-command: "make upload" -- End: