Open jmej opened 11 months ago
hi ✌️ i tried the examples, and apparently i fixed that problem in particular changing the parent of the MidiBus from 'this' to 'new java.lang.Object()'.
myBus = new MidiBus(new java.lang.Object(), -1, 3);
i'm using the processing library manager version of themidibus. i still have some other issues, but the nullpointerexception disappears
There are other workarounds as shown below.
// myBus = new MidiBus(this, input, output);
myBus = new MidiBus();
myBus.registerParent(this);
myBus.addInput(input);
myBus.addOutput(output);
I have run this example code on many installs of 4.3 using theMidiBus library from the package manager but on this particular system (windows 11 pro) I can't get the exmaple to run without a NullPointerException with no further information.
I tried downloading the latest library release manually but had the same problem.