Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local speaker = peripheral.find("speaker")
- local function PlaySound(pitch, onpu)
- speaker.playNote("harp", 3, pitch)
- sleep(2 / onpu)
- end
- while true do
- if redstone.getInput("left") or redstone.getInput("right") then
- PlaySound(10, 4)
- PlaySound(10, 8)
- PlaySound(11, 8)
- PlaySound(13, 4)
- PlaySound(6, 4)
- PlaySound(15, 4)
- PlaySound(13, 8)
- PlaySound(11, 8)
- PlaySound(13, 4)
- PlaySound(10, 4)
- PlaySound(11, 4)
- PlaySound(10, 8)
- PlaySound(8, 8)
- PlaySound(10, 4)
- PlaySound(6, 4)
- PlaySound(3, 8)
- PlaySound(6, 8)
- PlaySound(5, 8)
- PlaySound(8, 8)
- PlaySound(6, 2)
- while redstone.getInput("left") or redstone.getInput("right") do
- sleep(0.5)
- end
- end
- sleep(0.5)
- end
Add Comment
Please, Sign In to add comment