Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import winsound
- import time
- music = []
- def synpose(table):
- for note in table:
- music.append( (note, 200, 0) )
- def compose(note):
- music.append( (note, 200, 0) )
- def precise(note, time):
- music.append( (note, time, 0) )
- def compros(note, time, delay):
- music.append( (note, time, delay) )
- # - Compose basic stuff
- synpose([
- 554,
- 1108,
- 830,
- 739,
- 1479,
- 830,
- 1396,
- 830,
- 554,
- 1108,
- 830,
- 739,
- 1479,
- 830,
- 1396,
- 830,
- 622,
- 1108,
- 830,
- 739,
- 1479,
- 830,
- 1396,
- 830,
- 622,
- 1108,
- 838,
- 739,
- 1479,
- ])
- for sound in music:
- print ("[#-MUZ0-IC#] - Frec[" + str(float(sound[0])) + "] Duration[" + str(float(sound[1])) + "]")
- time.sleep(0.01)
- winsound.Beep(sound[0], sound[1])
- print ("[#-MUZ0-IC#] - Waiting " + str(float(sound[2])) + "s")
- time.sleep(sound[2])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement