def console(env): try: console = MusicConsole(env) console.interact() except KeyboardInterrupt: midi.panic() print("See ya!")
def goof_around(env, drums=False): try: return midi.playe(ev_goof_around(env, drums=drums)) except KeyboardInterrupt: print("Bye!") midi.panic()