diff options
-rw-r--r-- | rhodes.lua | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1,3 +1,7 @@ +-- midi fm rhodes +-- +-- key 2: play a C4 + engine.name = "Rhodes" local MusicUtil = require "musicutil" @@ -22,6 +26,13 @@ function init () end end +function key (n, x) + if n == 2 and x == 1 then + engine.note_on(60, 50) + elseif n == 2 and x == 0 then + engine.note_off(60) + end +end -- Local Variables: -- compile-command: "make upload" |