Re: Syncing DP with Logic 9
Posted: Fri Feb 27, 2015 4:33 pm
I have it working with Logic X. I don’t expect the Logic 9 setup would be any different. If you can get it working in Mainstage, there's probably no point in bothering with this, but I wasn't able to get MS to work. It's a PITA to set up, but once done, you can save it and there is very little effort involved in using it -- no more than a standalone VI.bayswater wrote:I went and tried to find the templates I used to do this, and they appear to been obliterated with the installation of Logic X. I got further distracted because my Kirk Hunter EXS24 instruments also seem to have disappeared. I'll have to recreate and test it, and when I do, I'll post a sample DP and Logic project files that should work together.alex2035 wrote:I read your old post, the Garageband PDF and everything I could find about this, somehow I have a similar problem as you mention, Logic keeps playing the first instrument in the tracks sequence disregarding what MIDI channel/track I try to engage. If you could take the trouble to explain a bit further how did you managed to get this working I would be thankful. I tried without Soundflower as nightcrawler mentioned as well without even getting a sound even if I tried to use DP as "MIDI Only" to drive Logic..
Basically you go into the Clicks and Ports Environment layer and filter the MIDI input by channel and direct each channel to the strip that should be using it. More when I get it working again.
I’ve tried to make sure this is complete, but no doubt I’ve missed something and troubleshooting will be required.
1. Install Soundflower. Restart may be necessary.
2. Open a (new) DP project.
a) configure the hardware driver so DP can see Soundflower.
b) turn on Interapplication MIDI (IM). You only need the Outputs. If you need more than 16 MIDI tracks going to Logic you can create more than one IM port.
c) create MIDI tracks and route them to the IM port on different MIDI channels. Put a few MIDI notes in one or more tracks for testing the timing later.
d) in Bundles, set up as many Soundflower pairs as you will need to return audio from Logic. I use the 64 channel version to get 32 pairs.
e) add an audio track to correspond with each MIDI track. Use the Soundflower pairs set up in Bundles as the input sources, and turn on audio monitoring. Use your usual output destination for these audio channels.
f) Save.
3. Leave DP running and open up a new Logic project.
a) set Soundflower as the audio device. You might want to use I/O labels to name the Soundflower pairs in Logic so you can keep track of them. The first pair will always be name Stereo Output, so I start with channels 3 and 4 and use the name in the DP Bundles.
b) create the Instrument tracks you want. Set their outputs to the Soundflower pairs
c) open the Environment page, go to the Click and Ports layer, and remove the cable that leads to the Sequencer Input.
d) go to the Mixer layer
e) add a Physical Input and a Channel Splitter (the Physical Input should disappear from the Click and Ports layer). You’ll need a channel splitter for each MIDI port (one for each 16 MIDI channels)
f) Get all the objects arranged so you will be able to draw cables between them. Note: Arranging objects in the Environment is fussy. Remember you have to hold down the Shift key to move a Channel object. Different actions appear to be required to select different object, so you have to get use to it to avoid constantly deleting objects and creating unwanted object.
g) the IM port you created in DP will appear in the Physical Input. Draw a cable from the Physical Input to the Channel Splitter
h) draw cables from the channel splitter to the mixer channels
i) Save.
Note : You might want to place Input View boxes between the channel splitter and the Mixer channels so you can see the MIDI activity and verify what is going to each instrument. I can’t find a way to add these from the Environment menus, but you can copy and paste them from the default Click and Ports layer.
4. Go back to DP
a) open the mixer and press play. You should see the meters in the MIDI channels move, and the meters in the Audio channels move at the same time, and hear the Logic instruments.
b) arm the audio tracks and record a pass.
c) zoom in to the recorded audio and note the offset in samples between the onset of the MIDI note and the onset of the recorded audio.
d) insert the Timeshift MIDI plugin and set it to play early by the number of samples in the offset.
e) Save
More notes:
a) make sure Soundflower, DP and Logic are using the same sample rate, etc.
b) you might need to find tune the timeshift settings — I only use EXS24 in Logic. Other instruments might give you different offsets
c) when you first press play in DP, there may be timing anomalies. This settles down after a few seconds. When you record a passage of the Logic instruments in DP, maybe put in a loop or long preroll to give everything time to “catch up”.
d) always load the DP project first, then Logic. Otherwise, Logic complains that the number of MIDI ports is changing when DP starts up.
e) this setup will only allow you to use Logic as a slave to DP. If you want to have Logic doing its own stuff at the same time, you’ll have to draw cables from other MIDI input devices to the Sequence Input object in the Environment, create an Aggregate Audio driver that includes your interface and Soundflower, link the transports in DP and Logic, and so on.
f) you should be able to manage the Logic project entirely from the Environment page. You can use the mixer channels there just as you would in the Mixer, open and edit the VIs, etc. That way, you can use Logic and all of it’s instruments as if it was one large complicated standalone VI.
The link below goes to a QT movie (no sound) that shows this working on my setup. The DP project has 6 MIDI tracks. The first two play within DP on Truepiano and M1. The next 4 go to Logic over Interapp MIDI to 4 EXS24 instruments. The Environment page shows the MIDI routing inside Logic as clearly as I can get it. The output of the EXS24 channels goes over Soundflower back to DP where it is recorded. Recording is not necessary — if you have monitoring on in the DP audio channels you will hear the EXS instruments from DP. Note that you can’t hear them in Logic. You can see the MIDI time shift setting and the Bundles too.
http://heavyethics.com/DPAV/DP&Logic-720P.mov