Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("bottom")
- function Play(Note)
- rednet.send(22,Note)
- end
- while true do
- sleep(0.05)
- local event, key = os.pullEvent( "key" ) -- limit os.pullEvent to the 'key' event
- if key == keys.e then
- Play(5)
- end
- if key == keys.w then
- Play(1)
- end
- if key == keys.e then
- Play(4)
- end
- if key == keys.r then
- Play(7)
- end
- if key == keys.t then
- Play(10)
- end
- if key == keys.z then
- Play(14)
- end
- if key == keys.u then
- Play(17)
- end
- if key == keys.i then
- Play(20)
- end
- if key == keys.o then
- Play(22)
- end
- if key == keys.p then
- Play(24)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement