a module for musical beeps
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | ## andrew w. teesdale jr.
## music.py
import winsound as s
def c():
s.Beep(262, 300)
def d():
s.Beep(292, 300)
def e():
s.Beep(330, 300)
def f():
s.Beep(349, 300)
def g():
s.Beep(196, 300)
def a():
s.Beep(220, 300)
def b():
s.Beep(247, 300)
if __name__ == '__main__':
c()
e()
c()
b()
d()
f()
d()
c()
e()
g()
g()
g()
e()
f()
d()
e()
c()
e()
d()
c()
e()
c()
b()
d()
f()
d()
c()
e()
g()
e()
d()
a()
c()
e()
d()
c()
print 'ended'
|
try adding sharps and flats to this module