Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant connect MIDI Device with Processing #32

Open
charnsith opened this issue Jul 26, 2022 · 2 comments
Open

Cant connect MIDI Device with Processing #32

charnsith opened this issue Jul 26, 2022 · 2 comments

Comments

@charnsith
Copy link

Hi there! I'm very new to coding especially with Processing.

After researching through this i've tried the first step of connecting my MIDI device and found an error :


Consoles error :

java.lang.NullPointerException: Cannot invoke "java.lang.reflect.Method.invoke(Object, Object[])" because the return value of "java.util.Map.get(Object)" is null
at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:1388)
at processing.core.PApplet.handleMethods(PApplet.java:1542)
at processing.core.PApplet.dispose(PApplet.java:3593)
at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:405)
NullPointerException
Could not run the sketch (Target VM failed to initialize).
For more information, read Help → Troubleshooting.


I have only trying to import MIDI device, and could not find the name of my midi on the device list. I have connected my devices to other music making software logic pro and it works fine. Note that when i try connecting the device the additional input number is 2 and 3 so I put 2 and 3 as my input and output.


import themidibus.*;

MidiBus bus;

void setup() {
MidiBus.list();

bus = new MidiBus(this,2,3);
}


Console Shows

Available MIDI Devices:
----------Input----------
[0] "Real Time Sequencer"
[1] "Out"
[2] "EDITOR Out"
----------Output----------
[0] "Gervill"
[1] "Real Time Sequencer"
[2] "In"
[3] "EDITOR In"


Does anyone have similar problems or any suggestion :(

@NicholasCHowlett
Copy link

@charnsith, I'm having the same issue. I'm guessing it's an issue with this library and how it calls Java, but I'm not very familiar with this area.

@NicholasCHowlett
Copy link

@charnsith, seems my issue (and perhaps yours, too) can be solved using a workaround: #28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants