Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function send(msg)
- rednet.send(2,msg)
- end
- while true do
- events = {os.pullEvent()}
- if events[1]=="char" and events[2]==" " then
- send("kick")
- elseif events[1]=="key" and events[2]==205 then
- send("bass")
- elseif events[1]=="key" and events[2]==208 then
- send("click")
- elseif events[1]=="key" and events[2]==200 then
- send("snare")
- elseif events[1]=="key" and events[2]==203 then
- send("note")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement