M4L MIDI Lib – Unrestricted MIDI I/O

May 22, 2013 at 5:45am

M4L MIDI Lib – Unrestricted MIDI I/O

I’ve just posted a beta version of a cross-platform MIDI library (written in Java) for unrestricted MIDI input/output in M4L devices and would appreciate some help testing it out.

You can find a download link and post feedback on the library in this thread on my forum.

Thanks in advance.

Jun 5, 2013 at 1:22am


I’ve not had any success using this method for getting midi into a max for live patch, it just throws up a error in the max window.

Unknown error in external.

I’m using live 7.0.3, max 6.1.2 and the latest java version. On windows 7 32-bit

Any help?



Jun 5, 2013 at 7:56am

The library isn’t an external, it’s a set of Java classes, so I’m not sure how the error you’re referring to could be related to the library.

If possible, post the patch you’re using the library in and I’ll have a look at it. Make sure that it doesn’t use any externals though please. Also, mention which Live version you’re using as I don’t think you meant 7.0.3. As an aside, it wouldn’t hurt to update to the latest version of Live (either 8.4.1 or 9.0.4).

Jun 7, 2013 at 10:13am

hi, sorry my mistake it says ‘Undefined external error’

The max patch is simply a loadbang into mxj nk.midi.sys, umenu, mxj nk.midi.input, then print

I’m on live 8.4.1, max 5.1.9 win 7 64bit

Jun 7, 2013 at 5:52pm

Again, please post the patch. Also, please mention at which point this error occurs. For example, does it occur upon selecting a port from the umenu? If so, which port are you selecting and is it in use elsewhere? A screenshot showing the Max window containing the error would be helpful as well. It would also be useful to know if you’re able to use the mxj object with other classes such as those included with Max.

Lastly, the system specs you mention in this post are drastically different from those mentioned in your first post. Which are the correct specs? And which Java version are you using? You can check that [url=http://www.java.com/en/download/installed.jsp]here[/url].

Jun 11, 2013 at 1:39pm

I’m working on pretty much the exact same thing. I’ll check your library out when I get a chance. Do you have a Bitbucket.org or Github.com repository?

Jun 12, 2013 at 5:31am

I was working on one, but there doesn’t seem much point anymore ;)

Jun 12, 2013 at 5:34am

*wrong thread*

Jun 12, 2013 at 7:18am


Jun 12, 2013 at 10:20am

Looking forward to checking this out. The absence of this has been a major thorn in my side.

Jun 12, 2013 at 11:40am

Anyone have ideas why mxj’s stop working when not in edit mode in M4L?

MXJ’s fine when the edit window is open but once I close it, they darken like an invalid object (and no inlet/outlets are there)

Dec 19, 2013 at 4:52pm

Excited about this (or any) max for live midi solution.

So far I am getting an ArrayIndexOutOfBounds Exception when trying to use a midi device on OS X.

For instance:

mxj nk.midi.output “Unitor8/AMT8 – Port 2″

Is there a naming convention I’m missing, I’m just going with what I get from nk.midi.sys ?

Jan 11, 2014 at 1:09am

nk.midi.sys has midi outport and inport connectors…”ArrayIndexOutOfBounds” exception had me scratching my head.


You must be logged in to reply to this topic.