(JPfeP) #1


After quite some work, I’m happy to release my first Add-on. As its name indicates it, this Add-on allows you to bind properties to MIDI events in real-time in the viewport.

Possibles usages are multiple, you can use MIDI physical knobs to control objects in the scene for instance or work both on your MIDI sequencer and Blender at the same time, if you are a composer, to add visuals to your songs in close relationship. It works both ways (sending/receiving).

I am providing an example which turns Blender into a polyphonic synthesizer (well, a bare samples reader for now), but it is just for the fun and to demonstrate how to use update functions, when you create your own properties, to be able to do whatever you want. You could theoretically do a full remote controller that way.

Read my page for all the informations:

-08/28/2015: Fix for a small bug preventing the MIDI settings to be restored.

Some easy to install versions are coming (all dependencies bundled) ! (Mac OSX) (Linux 64bit)

(Thanzex) #2

Hi! i’ve been trying to make an addon to control blender with MIDI inputs, but as a complete noob with phyton i wasn’t able to do much.
Here i have a little MIDI keyboard that i’d like to use to change between editor types and screen layouts. After a quick look at your addon i think is totally doable! What do you think? :slight_smile:

(shawn.kearney) #3

Hey! I’ve been looking for this for years now! Thank you!

(const) #4

This project it’s an eye opener for me because it explains lots of questions I had. At least this is a thin approach and it won’t require too much bloat, it will work at once.

Having a look at this code:

This line brings me ideas:

#For the MIDI controllers
for item in bpy.context.scene.MIDI_keys:
#for the notes
elif (message[0]-143) ==

At the very best I could create a map of message IDs and callback functions, it might work…

(Michael Knubben) #5

Yes! I’ve been hoping someone would make this for ages. Thanks! I’ll test this as soon as I can.

edit: will this install-method always be the case, or can I look forward to this being a regular addon without extra dependencies soon?

(JPfeP) #6

Hello, I want to make this add-on easier to install. I need time to investigate how to do that, may be it is possible to redistribute the dependencies with the Add-on. The author of the python module for “rt-midi” told me he could provide some binaries in the future. So, things could improve in the near term as he was close to a stable version for his module.

However it is hard to say if and when it will as easy as a regular add-on. Python doesn’t deal with MIDI, MIDI is bound to the operating system and you will always need a layer to access the MIDI devices.

Recently a friend under Mac OSX wrote me what he had to do for installing AddMIDI, with that I am going to update a bit my documentation (Probably this weekend). May be by the end of September, things will have improved already, but it will be a gradual process. Better documentation, simpler things to do.

As a last resort I could provide some builds on Graphicall.

(David Boura) #7

Big big Flag, i hope your project is still alive!

(JPfeP) #8

Hello David, well it is not dead but development depends a little bit on reactions from the users. :slight_smile:

To help its adoption I just made an easy install zip file for people using Ubuntu 16.04 64bit (and others 64bit distros ?):

It should work with any Blender 2.77a version (downloaded from the official site or from the Blender PPA that you can find somewhere).

Just do ‘install from file’ in Blender and select the zip file. That’s it. It is very likely that it will work on any 64bit Linux distro, BTW.

Let me know if it is works OK for you.

(Craig Jones) #9

It gives me an idea, I will have to try it

(Michael Knubben) #10

Are the dependencies integrated, as they were for your osc addon?

(JPfeP) #11

Yep, the dependencies are located in the rtmidi folder inside the zip file. There is a binary library for the midi bundled and the python wrapper, so there should be nothing to install on the system.

It should be possible to provide the same thing for Windows and MacOS. The procedure is easier than I thought. But I don’t have access to theses systems right now.

(David Boura) #12

Good news! It’s also means it’s working with Blender 2.77, so as soon as i have some time to dig it, i will!
Possibilities are near endless!
Something i’m not sure about is when you say “it works in the 2 ways”, i understand i can drive stuff in Blender with my Midi controller, but can Blender drive stuff in my Daw? That would be awesome… idk for example a noise controlling a filter, or a curve controlling a volume fader? or inside a simulation, a cube hurting the floor or other object with my Daw making the noise?

Brain already melt!

(JPfeP) #13

Yes David, Blender will send the values of the chosen properties thru the selected MIDI out port (if any). I agree the possibilities are endless but I don’t know if it is possible to detect the collision of an object with another yet. May be with an ‘handler’ (a special Blender python feature that would test for each frame the coordinates of some objects). But for the simpler cases, there is no problem.

(David Boura) #14

Just awesome!

(JPfeP) #15

Hello everybody,

With the help of a friend here is a new easy to install version of AddMIDI, this time for Apple OSX users ! All the dependencies are bundled so it is as easy to install as any Add-on. Keep it zipped, as always, and do “load from file” in the User Preferences, then choose the zip.

(WinZs) #16

Hello everybody,

Great and awesome job JPfep !
I have installed AddMIDI for OSX on two Mac computers:
iMac MacOs Snowleopard 10.6.8
MacBook MacOs El Capitan 10.11.6

Works fine !
Using Midi Controllers with and inside Blender is now so easy !

Thanks a lot and well done !

(Friendly Floyd) #17

I keep hoping you can create an easy install for Windows as well, because try as I might, I can’t seem to get it working manually. The closest I’ve come is having it show up in my add-ons, but I can’t enable it: it only throws up this error message:

Traceback (most recent call last):
File “C:\Program Files\Blender Foundation\Blender\2.78\scripts\modules\”, line 330, in enable mod = import(module_name)
File “C:\Users\Bobby\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\”, line 73, in <module> from select import select
ImportError: DLL load failed: The specified module could not be found.

I’ve tried following the steps outlined on the website, and even attempted multiple versions of the files provided, to no avail. Any idea what I might be doing wrong?

(draguu) #18

Its not related but i just wanted to ask…
Is it possible to do voice recording in blender using m audio mic?

(JPfeP) #19

@Friendly Floyd: I don’t have a windows machine (only Linux) but the Add-on doesn’t find the compiled module for rtmidi. There might be several reasons explaining that, but it is not easy to answer without seeing how things turned during your manual installation. I am going to check a little bit the documentation I wrote, and try to provide a more helpful answer soon. May be it is not very hard to solve, I will contact you in private, if you agree.

From a broader perspective, I want to make an update to AddMIDI (backport of a fix from AddOSC) and I will try at the same time to provide the long awaited easy to install version for Windows. I have a friend that could help me for that, but it could take a little bit longer.

(Michael Z Freeman) #20

Hi. Very interested to see your addon here. I’ve been developing a prototype here …

DJ turntable platter physics simulation: Link sound pitch to platter rotation speed ?

I have forum thread on the Reaper DAW forum here …

A Reaper way or a VST that can replicate my Blender Turntable physics prototype ?

… and here …

Possible to simulate physics using JFSX/Reascript/LUA ?

Unless there’s some way of simulating physics in Reaper scripting I realised that rather than doing the audio in Blender it makes sense to actually have the turntable simulation as a virtual controller. Audio in Blender is limited and fiddly even though Python Audaspace is nice, Blender is never going to be able to compete with something like Reaper. Ideally Blender would output MIDI timecode (or whatever its called) for transport and play head location to Reaper (and other MIDI transport aware software). But would that be problematic here ? I have had Jack Audio working on Windows but its very fiddly compared to things like Reaper ReaRoute and Loopback MIDI devices (I use “loopMIDI”). If the transport would not work then I guess it could be done by simply sending MIDI CC.