Code: Alles auswählen
import winsound
import time
beat = 1000
c = 262
d = 294
e = 330
f = 349
g = 392
a = 440
winsound.Beep(c, beat / 4)
time.sleep(0.1)
winsound.Beep(d, beat / 4)
time.sleep(0.1)
winsound.Beep(e, beat / 4)
time.sleep(0.1)
winsound.Beep(f, beat / 4)
time.sleep(0.1)
winsound.Beep(g, beat / 2)
time.sleep(0.1)
winsound.Beep(g, beat / 2)
time.sleep(0.1)
winsound.Beep(a, beat / 4)
time.sleep(0.1)
winsound.Beep(a, beat / 4)
time.sleep(0.1)
winsound.Beep(a, beat / 4)
time.sleep(0.1)
winsound.Beep(a, beat / 4)
time.sleep(0.1)
winsound.Beep(g, beat / 1)
time.sleep(0.1)
winsound.Beep(a, beat / 4)
time.sleep(0.1)
winsound.Beep(a, beat / 4)
time.sleep(0.1)
winsound.Beep(a, beat / 4)
time.sleep(0.1)
winsound.Beep(a, beat / 4)
time.sleep(0.1)
winsound.Beep(g, beat / 1)
time.sleep(0.1)
winsound.Beep(f, beat / 4)
time.sleep(0.1)
winsound.Beep(f, beat / 4)
time.sleep(0.1)
winsound.Beep(f, beat / 4)
time.sleep(0.1)
winsound.Beep(f, beat / 4)
time.sleep(0.1)
winsound.Beep(e, beat / 2)
time.sleep(0.1)
winsound.Beep(e, beat / 2)
time.sleep(0.1)
winsound.Beep(d, beat / 4)
time.sleep(0.1)
winsound.Beep(d, beat / 4)
time.sleep(0.1)
winsound.Beep(d, beat / 4)
time.sleep(0.1)
winsound.Beep(d, beat / 4)
time.sleep(0.1)
winsound.Beep(c, beat / 1)
time.sleep(0.1)