Created
May 26, 2018 18:06
-
-
Save jerblack/2f251cb95c70826bc80393b9282299a3 to your computer and use it in GitHub Desktop.
Close Encounters with win32api beep in python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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