Spawn of midi python notes

Asked

Viewed 30 times

-1

i want to create a game style Guitar I made a prototype in Blender I used as a base a course of Infinity Runner in Blender, I would like to create a Pawn of notes that are contained in a file.midi or file.Chart, in the course he teaches to make a random Pawn but that does not suit me, I have been looking but not found a way to do it, some idea for me to take the first step?

1 answer

1

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.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.