Skip to content

Instantly share code, notes, and snippets.

@jerblack
Created May 26, 2018 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jerblack/2f251cb95c70826bc80393b9282299a3 to your computer and use it in GitHub Desktop.
Save jerblack/2f251cb95c70826bc80393b9282299a3 to your computer and use it in GitHub Desktop.
Close Encounters with win32api beep in python
from win32api import Beep as b
# Close Encounters with win32api beep in python
# d4 e4 c4 c3 g3
# b(frequency, duration)
# thanks to https://forums.parallax.com/discussion/65026/close-encounter-tones
b(293, 1000)
b(329, 1000)
b(261, 1000)
b(130, 1000)
b(196, 2000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment