my goal is to play exact midi note in a certain frame, so i thought the only way is to use a midi in/out python library, and execute a certain python command line or script in the required keyframe, so from here my question becomes: is there any way to keyframe a python script? of course if there are any other easier ways for my goal, it would be better

  • $\begingroup$ There is currently no intuitive way to use Midi in Animation Nodes. But the the developer has done some testing of such system: youtube.com/watch?v=MhUS13dzF5A So there might be support of midi data in AN at some point. $\endgroup$
    – Omar Emara
    Nov 22, 2017 at 7:17

1 Answer 1


I don't know if you can do that, but you shouldn't need to. Try simply exporting the MIDI to a sound file, and using the Video Sequence Editor (I think) to align it with your animation.

  • $\begingroup$ i saw it implemented here on this video youtube.com/watch?v=LFUtjWTIOEM he says he used blender's game engine, but i have no clue how to start, as he gave no further explanations. and of course i considered the idea of saving it to a file and aligning it to video, but it doesn't suit my project $\endgroup$
    – user8844
    Nov 21, 2017 at 22:17
  • $\begingroup$ Oh, like in real time? Interesting! Well, I have no idea how to do that. (: But if you want that, you shouldn't really need keyframes—you just need to have a MIDI note trigger an animation. $\endgroup$
    – SilverWolf
    Nov 21, 2017 at 23:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .