Themidibus + python

#1

Hi everyone —

I converted this java sample of themidibus in to python: https://github.com/sparks/themidibus/blob/master/examples/Basic/Basic.pde

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?

Thanks!!!

1 Like

#2
2 Likes

#3

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?

0 Likes

#4

SmallButDigital.com/docs/themidibus/index.html?themidibus/package-summary.html

1 Like

#5

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

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

1 Like