All pastes #451693 Raw Edit

Mine

public python v1 · immutable
·published 2007-04-21 19:16 UTC
rendered paste body
import ctypesmciExecute = ctypes.windll.winmm.mciExecutemciExecute.argTypes = [ctypes.c_char_p]def play_midi(filename):    assert mciExecute("open sequencer!%s alias midifile wait" % filename)    assert mciExecute("play midifile wait")    assert mciExecute("close midifile wait")if __name__ == '__main__':    import sys    play_midi(sys.argv[1])