Advertisement
TechManDylan

Zelda

Feb 14th, 2023 (edited)
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. function playSong()
  2. -- Wrap the connected speaker block to the computer
  3. local speaker = peripheral.find("speaker")
  4.  
  5. -- Play the notes of the song
  6. speaker.playNote("bit", 1, 13)
  7. os.sleep(0.15)
  8. speaker.playNote("bit", 1, 12)
  9. os.sleep(0.15)
  10. speaker.playNote("bit", 1, 9)
  11. os.sleep(0.15)
  12. speaker.playNote("bit", 1, 3)
  13. os.sleep(0.15)
  14. speaker.playNote("bit", 1, 2)
  15. os.sleep(0.15)
  16. speaker.playNote("bit", 1, 10)
  17. os.sleep(0.15)
  18. speaker.playNote("bit", 1, 14)
  19. os.sleep(0.15)
  20. speaker.playNote("bit", 1, 18)
  21. end
  22.  
  23. playSong()
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement