"NullPointerException" when I try to create a MidiBus object from The MidiBus library

Hello, does anyone know how I can open up libraries that I’ve imported so I can investigate why I’m getting a null pointer when I make a new midi bus? I need to get into “The MidiBus” by Severin Smith

I’m following the youtube tutorial here:https://www.youtube.com/watch?v=5VdeOb7PoQc&t=4s

My code is showing this below:

import themidibus.*;

MidiBus midi;

// run when your sketch runs
void setup(){
     midi = new MidiBus(this, “VBUS_A”);
}

Result:

NullPointerException
NullPointerException
NullPointerException
NullPointerException
NullPointerException

I have created a virtual midi bus called “VBUS_A” that is functioning as you can see:

Thanks!

Hello @JakeFromJakku ,

It worked with Processing 3.5.4 (used in video) with the examples from the library:

I got errors with Processing 4.4.10 with the examples.

:)

1 Like

Brilliant, thank you @glv

1 Like