Skip to content

Instantly share code, notes, and snippets.

@MelanieS
Created May 4, 2012 07:23
Show Gist options
  • Save MelanieS/2592845 to your computer and use it in GitHub Desktop.
Save MelanieS/2592845 to your computer and use it in GitHub Desktop.
Annoying Toy
require 'win32/sound'
include Win32
#count = 50
Sound.beep(150, 5)
Sound.beep(200, 5)
Sound.beep(250, 5)
Sound.beep(300, 55)
Sound.beep(350, 125)
Sound.beep(400, 100)
Sound.beep(450, 55)
Sound.beep(500, 85)
Sound.beep(550, 55)
Sound.beep(600, 100)
Sound.beep(650, 10)
Sound.beep(700, 10)
Sound.beep(750, 20)
Sound.beep(800, 10)
Sound.beep(850, 100)
Sound.beep(900, 20)
Sound.beep(100, 500)
Sound.beep(500, 50)
Sound.beep(550, 55)
Sound.beep(600, 10)
Sound.beep(650, 10)
Sound.beep(200, 400)
Sound.beep(250, 5)
Sound.beep(300, 55)
#while count < 50
# frequency = rand(900)
# duration = rand(100)
# Sound.beep (frequency, duration)
# count = count + 1
#end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment