Advertisement
guitarplayer616

CC Music Player

Jun 7th, 2015
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. function send(msg)
  2.   rednet.send(2,msg)
  3. end
  4.  
  5. while true do
  6.   events = {os.pullEvent()}
  7.   if events[1]=="char" and events[2]==" " then
  8.     send("kick")
  9.   elseif events[1]=="key" and events[2]==205 then
  10.     send("bass")
  11.   elseif events[1]=="key" and events[2]==208 then
  12.     send("click")
  13.   elseif events[1]=="key" and events[2]==200 then
  14.     send("snare")  
  15.   elseif events[1]=="key" and events[2]==203 then
  16.     send("note")
  17.   end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement