I want to send data from my sketch into my DAW, more specifically, Logic Pro X, using the midiBus library, but I do not know how to access the appropriate midi channel to make this happen. When I create an Aggregate or Multi Output device in the Audio Midi Setup of my Mac, it is not recognized by the MidiBus().list function on processing. Does anybody with any experience on this can help? Has anybody successfully linked up Processing with Logic Pro X, or any other DAW for that matter (assuming that the general principles translate)?
Secondly, you may like the other post be finding one of the limitations of JavaSound MIDI. It used to be very limited on Mac although has improved a bit. Because of that I know there are a few alternative JavaSound MIDI implementations around. I haven’t tried it but you could have a look at https://github.com/DerekCook/CoreMidi4J
I created a virtual port. It was not detected by the “Basic” sketch among the MidiBus’ examples. I figured thats because of the limitations of JavaSound MIDI, so I installed the CoreMidi4J. For its installation it is needed that I place the .jar file on the class path of the project with which I want to use it. Im a total beginner so I don’t even know what a class path is, or for that matter where it is. And also, by the project do they mean the sketch from which I am trying to output the MIDI messages?
I placed the file on the libraries folder, with the library containing the .jar named like the .jar minus the extension. I tried to import it into the Basic.pde example of the MidiBus library. And yet, I cannot import the CoreMidi4J.
import themidibus.*; //Import the library
the error message says: The import coremidi4j cannot be resolved
I read in the aforementioned thread that is similar to this one (MIDI: from Processing to Daw (Linux)) about the implementation of JACK Audio Connection Kit. I believe you developed its MIDI implementation @neilcsmith. Could you tell me about this? Is this a library, or something that could be used in tandem with MidiBus?
I wrote the Java binding for JACK, not JACK itself, and a lot of the MIDI support in the bindings came from someone else - JACK’s primary use is routing real time audio across applications.
You can find an example of JACK MIDI-through in the JAudioLibs examples. It’s lowlevel stuff, but not that difficult. There is no JavaSound MIDI device implementation on top of it, although you could theoretically write one, so out of the box it won’t work with MidiBus.