This article explains how to setup a 16 track virtual instrument template for multitrack MIDI recording in Logic Pro 8 on OS X. This is straightforward but might not be obvious if you are new to Logic. I use this kind of template all the time when using other software (like Max/MSP) to control Logic.
Now you are all set and can send MIDI to Logic, which will route the MIDI to one of the tracks based on its channel. To send MIDI into Logic from another application, use a virtual MIDI port.
If you are using Max/MSP, it automatically creates two virtual MIDI ports called "from Max/MSP 1" and "from Max/MSP 2". You simply need to select those ports as your MIDI output for objects like [noteout] and [ctlout].
Otherwise you can setup an IAC port like this:
Now you should see a MIDI device called "IAC bus portname" in your audio applications. Select that as your output and Logic will receive the MIDI.
WARNING: The virtual MIDI port becomes unstable when using ReWire to route audio from Logic back into Max/MSP or to use Logic's clock to synchronize Max via [hostsync~]. By unstable I mean unusable: the timing is off and lots of notes disappear. It's possible to use ReWire for everything and avoid this problem. See this forum discussion for more info. Or you can sync to Logic's clock via MIDI and the [rtin] object instead of [hostsync~].
Adam Murray, 2008
contact the author...