How can I write a MIDI file with Python?

后端 未结 2 1016
梦如初夏
梦如初夏 2021-02-02 02:22

I am writing a script to convert a picture into MIDI notes based on the RGBA values of the individual pixels. However, I cannot seem to get the last step working, which is to ac

2条回答
  •  野的像风
    2021-02-02 02:40

    I know this is an old post, but I'm the author of the library, and I wanted to mention that python 2 and 3 support have now been unified and with the demise of Google Code the code is now hosted on GitHub and can be installed via pip, ie:

    pip install MIDIUtil
    

    Documentation is available at Read The Docs.

    (Tried to comment but I lacked the experience points.)

    The end-of-track message is created automatically when the file is written to disk.

提交回复
热议问题