aboutsummaryrefslogtreecommitdiff
path: root/rhodes.lua
diff options
context:
space:
mode:
Diffstat (limited to 'rhodes.lua')
-rw-r--r--rhodes.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/rhodes.lua b/rhodes.lua
index d9a1ee1..ab2a49f 100644
--- a/rhodes.lua
+++ b/rhodes.lua
@@ -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"