Advertisement
Guest User

Untitled

a guest
Apr 29th, 2018
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. import mido
  2. import random
  3. import time
  4. outdevice = mido.open_output()
  5. print("\n\n")
  6. print("Sound Brute Forcer Copyright Markosoft Inc. 2018")
  7. print("Everything is better with music...")
  8. print("\n\n")
  9. target = ["H", "e", "l", "l", "o", ",", " ", "W", "o", "r", "l", "d", "!"]
  10. index = [32 for i in range(0, 13)]
  11. now = [" " for i in range(0, 13)]
  12. i = 0
  13. while i < len(target):
  14. if now[i] != target[i]:
  15. index[i] += 1
  16. now[i] = chr(index[i])
  17.  
  18. if now[i] == target[i]:
  19. i += 1
  20. x = 0
  21. while x < len(target):
  22. outdevice.send(mido.Message('note_on', note=ord(now[x])))
  23. print(now[x], end="")
  24. x += 1
  25. time.sleep(0.005)
  26. print("\r", end="")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement