Themidibus + python


Hi everyone —

I converted this java sample of themidibus in to python:

I first made sure it worked with my midi device connected and responded in the java sample.

No technical issues in retooling the code but it won’t recognise any change in midi state. The main myBus object is recognised by printing in draw(). Looks like controllerChange() or notOn/Off() isn’t activating.

Is this a known bug? Any recommendations including alternative libs?


1 Like



Feck. The above info sounds beyond my knowledge at present.

Odd thing is it sometimes (after relaunching processing) gets as far as returning a callback print but stops short of the actual data - stops here: print("--------"). Then it seems to basically crash without crashing as nothing is called back. Then I have to relaunch processing to get that far again.

Do you know of any midi library tried and trusted in py mode?



1 Like


…so, according to that issue, jdf included MidiBus callback support in in

The specific methods for noteOn / noteOff / controllerChange are at the bottom of the commit.

1 Like