Advertisement
SirBaconBitz

Untitled

Jan 11th, 2014
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. --Code to find the side the speaker is on goes here.
  2. if SpeakerSide ~= false then
  3. speaker = peripheral.wrap(SpeakerSide)
  4. end
  5. RandomSong = {95, 98, 103, 127, 153, 169, 186, 196, 194, 189, 183, 175, 171, 179,
  6. 184, 181, 181, 180, 169, 157, 153, 156, 155, 151, 149, 150, 146, 141, 137, 129, 125, 140, 154, 161,
  7. 169, 172, 176, 185, 183, 173 ...}
  8. --The actual table is MUCH longer.
  9. if speaker then
  10. speaker.setAttenuation(0)
  11. for k, v in pairs(RandomSong) do
  12. speaker.start(1, v)
  13. sleep(0.01)
  14. end
  15. speaker.shutdown()
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement