just read the notes from a midi file -
To do this without having to implement all the reading of an arqivo midi to extract the notes yourself, you need to have a midi library for this -
The first hit on google looks good:
https://github.com/vishnubob/python-midi
Install her in a virtualenv Python and try - if you can read the midi file and have values for the notes you know how to interpret, just copy the "midi" folder from the library that, once installed will be in the ...folder. /site-Packages/midi from your virtualenv to your modules
Blender - (on Linux ~/.config/blender/<versao>/Scripts/modules
- next to the folder addons
, and it can be used normally by your scripts running inside Blender.
More than that is impossible to help, since you did not put none example of your code, or what you are trying to do.