by ski » Mon Mar 03, 2008 6:19 pm
NOTE: this procedure was originally posted during the Logic 7 era and updated for Logic 8. The procedure is still perfectly valid for Logic 9.
===========
SUMMARY: with this procedure you'll be playing back a track from Logic and recording it right back into Logic on another track. This "loopback recording" will likely be late* with respect to the original due to latencies inherent in your interface, driver software, etc. Note that Logic's I/O buffer and process buffer settings have no influence on this procedure.
This procedure lets you figure out to the sample how off your looped-back recording is with respect to the original. Once you determine that number, you'll then enter into Logic's recording delay setting in the audio prefs per the instructions below. From that point on, your live-recorded tracks will be perfectly in time with when you played them.
The procedure uses phase cancellation of the original and looped-back track to certify that you've found the right recording delay value (you'll see reference to "null point" below, and that's what this is about).
* Note: audio recorded by most audio interfaces ends up being late. But on some systems the recorded audio can actually end up early! And in some cases a recording delay setting of zero will suffice. The procedure outlined below addresses the more common scenario -- late audio.
HOW TO DETERMINE AND SET THE RECORDING DELAY
STEP 1 -- very important!
• Start with a totally blank song and NOT an existing project. Easy way to do this: use the Explore > Empty template.
• Turn software monitoring off
• Turn the metronome off
• Set the recording delay value to zero
• Set Plugin Delay Compensation (PDC) to off
2. Create two audio tracks:
• Track 1 (channel 1) -- add a CD track or any stereo track of your own, preferably something with sharp transients at the top, like drums or percussion. I'm going to refer to this audio region as "X". Align it to start at bar 2.
• Track 2 (channel 2) -- set this channel to record from INPUTS 1/2. This is the track you're going to record your looped-back audio on.
3. Use patch cables to physically connect outputs 1&2 of your audio interface to inputs 1/2 of the interface
4. Start playback at bar 1 and go into record a little before bar 2 (punch on the fly should be enabled to make this operation as smooth as possible. You can also use auto-punch if you want). The recording you're making on Track 2 -- the "loopback recording" -- is going to be called "Y". You only need to record about 10 - 20 seconds of material max.
5. After you've made the loopback recording, take Track 2 out of record and insert the Logic > Helper > Gain plug on this channel. Set the L & R channels to be out of phase.
What's going to happen next: you're going to play back both "X" (the original) and "Y" (the loopback recording). Because of the out-of-phase setting on the gain plug, if Logic recorded a perfectly in-time copy of X, playback at this point will result in silence. This is what happens when two identical waveforms are played together with the only difference being that one of them is 180º out of phase with the other.
However, chances are that X won't be time-aligned with Y due to the latency inherent in your audio interface and its driver software. You'll likely hear flamming (slapback echo), or a thin, flanger-like sound. If you hear this, it's a clear indication that your recording delay setting needs to be adjusted.
NOTE: the proper recording delay setting for some systems is indeed zero! So if at this stage you do achieve complete dead silence (or very close to it) you can conclude the test. If you don't achieve silence, continue to the next step...
6. Open "Y" in the sample editor. Zoom ALLLLLLLLLLL the way in to the anchor point as far as you can go. Set the sample editor's "view" to "samples".
7. Click/hold on the anchor point, being careful not to move it. You will now see two numbers in the sample editor window. Write down the bottom number.
On most system "Y" will have been recorded late. This means that the top of "Y" contains a little bit of dead air as compared to the original, "X". We're going to move the anchor point to the right -- one sample at a time -- to shift the starting point of "Y", past the dead air and to the sample position that will cause "Y" to be aligned with X, as follows...
8. Hit play and move Y's anchor point to the right one sample at a time until you start to hear the sound thin out. Start/stop Logic as needed. As you move the anchor further to the right the sound will thin out more and more. As you get closer to the null point a steady, flanger-like "pitch" will start to form in the sound. If the pitch gets increasingly higher you know you're moving in the right direction.
You will reach a point where the sound is extremely thin and almost silent, and then, moving one more sample to the right, it will cancel. When this happens, click and hold on the anchor and write down the bottom number.
9. Subtract the first number from the second number. Then put a "-" in front of it. THAT's your recording delay value; set it in your audio prefs.
To confirm that this is the correct number
10. Delete "Y" and make a new loopback recording on track 2. This is going to be called "Z".
11. If the number you calculated is correct, and the Gain plug is still active on track 2 (putting "Z" out of phase with the original "X"), when you play back both tracks now you will achieve silence. To confirm, bypass the plug and you should hear your original track 2x as loud.
If upon playing back X and Z the sound is still not perfectly canceling, adjust your recording delay +1 or -1 from the value you calculated and repeat steps 10 and 11 again.) However, note that sometimes it's not possible to achieve complete silence. You might hear a little bit of residual sound, and that will likely be due to the A/D convertor in your interface re-interpreting the signal in a slightly different way from the original. So while the goal is to achieve complete silence, you may only be able to get 99.95% of the way there. If you accomplish that, no worries, you're doing everything right and you'll be in good shape!
Last edited by
ski on Fri Nov 09, 2012 2:48 pm, edited 22 times in total.
MacPro 8 Core 2.4 Xeon | 32G RAM | OSX 10.6.8 | Logic 9.1.7 | RME FF800 | 3 monitors | Toys for days