Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import mido
- import random
- import time
- outdevice = mido.open_output()
- print("\n\n")
- print("Sound Brute Forcer Copyright Markosoft Inc. 2018")
- print("Everything is better with music...")
- print("\n\n")
- target = ["H", "e", "l", "l", "o", ",", " ", "W", "o", "r", "l", "d", "!"]
- index = [32 for i in range(0, 13)]
- now = [" " for i in range(0, 13)]
- i = 0
- while i < len(target):
- if now[i] != target[i]:
- index[i] += 1
- now[i] = chr(index[i])
- if now[i] == target[i]:
- i += 1
- x = 0
- while x < len(target):
- outdevice.send(mido.Message('note_on', note=ord(now[x])))
- print(now[x], end="")
- x += 1
- time.sleep(0.005)
- print("\r", end="")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement