Speaking of midi and graalvm, if you just want to play audio via graal native potentially lwjgl's OpenAL pathway will work. I have tried a JNI library via graal native and I found that as long as the shared library it depends on is loadable via the system linker it would work. Or you can use dtype-next's ffi pathways to bind to the OpenAL libraries directly.
Yeah, that could work!