Advertisement
guitarplayer616

piano test

Jun 7th, 2015
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. local notes = {}
  2. notes['b'] = colors.white  
  3. notes['f'] = colors.orange
  4. notes['c'] = colors.magenta
  5. notes['g'] = colors.lightBlue
  6. notes['d'] = colors.yellow
  7.  
  8.  
  9.  
  10. while true do
  11.   e = {os.pullEvent()}
  12.   for i,v in pairs(notes) do
  13.     if e[2] == tostring(i) then
  14.       rs.setBundledOutput("back",v)
  15.     end
  16.   end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement