Alignment of external MIDI events and audio

Hi,
I've been doing some careful measurements of the timing of MIDI events under Logic 8.0.2. I record a lot of external MIDI hardware, so the timing of external MIDI events and its relation to recorded audio is very important to me.
My setup is OS X 10.5.5, Logic 8.0.2., all relevant patches and updates. I'm using an RME fireface 800 as both the audio and MIDI interface in these examples.
I've created a project in which there is no plug-in of any kind: neither instrument nor effect. Even the klopgeist is gone.
My preferences settings:
Audio/Devices:
buffer=1024 samples
sw monitoring=off
indep mon level=off
I/O safety buffer=off
Audio/General:
PDC=Off (I also measured with PDC=all, to verify that it has no effect)
low latency mode=off
I create an external MIDI track of quantized whole notes: C3, playing on the first tick of each bar. BPM is 120.
I then create another external MIDI track, cable MIDI OUT to MIDI IN on the Fireface, and record the first MIDI track onto the second (i.e., loopback test). The note data is right on the money; within one tick of the original values. I set PDC to all, repeat the test, same result.
I then cable MIDI out on the Fireface to a hardware synth, and call up a patch with a sharp attack. I route the audio output of the synth to an audio input of the Fireface. I create an audio track with this input selected, and record the output of the synth. The recorded audio is early by 20ms or so -- roughly equivalent to the buffer size.
I repeat the test with PDC set to All, same result. PDC has no effect, as you would expect, as there are no plug-ins in this project.
I then set Preferences/MIDI/Sync/All MIDI Output delay to 21ms. I repeat the audio recording test, and now the recorded events are on the money.
Here are my questions. First, am I doing something wrong, or does Logic have a fundamental bug concerning the linkage between MIDI timing and audio timing?
It seems clear to me that this timing error has nothing to do with PDC. There is no "P". Right?
I thought that the RME has timestamped MIDI. The RME manual speaks of very accurate MIDI timing, and I can verify that the MIDI jitter of the Fireface is indeed low, in the 1ms neighborhood. This is borne out by the MIDI loopback test I did above. But MIDI timestamps don't mean anything if they are not correlated to the time code of the audio, haha! What am I missing here?
If timestamping the MIDI data can't work for some reason, could this problem not be solved by having Logic automatically delay the transmission of external MIDI data by an amount equal to the audio buffer size? Put differently, my solution to this problem is to set a MIDI output delay in preferences equal to the audio buffer size, i.e., 21.3ms. And this seems to work. Is that a proper solution, and if so, why does Logic not do such a thing automatically?
Thanks,
-Luddy

OK, so I just retested and here is the best part... I recorded a loop from my drum machine, cut the first note nicely to the 1 on the first bar... using a count in etc.
I played it back and looped outs 3-4 back into 1-2 on my Ensemble. I also played back the same kick on my drum machine just to check this reverse latency issue. I was not concerned with hit for hit layering accuracy. What I got back astounds me!
The "loopback" recording was spot on to the original being played out... totally locked. BUT, the one that was midi clocked by Logic and play from my drum machine came in ahead of the 1??? How is this possible when I am hearing it when monitoring this recording and it is slightly behind? RIDICULOUS! What does this mean?
Logic is NOT recording what I am hearing, but rather recording some timewarped version of it in which it places events ahead of when they happened, but ONLY on midi clocked or midi sent notes!
I have lurked here a long time and I know that there is not much known here about this issue, so before anyone tells me the typical solution I will say as I did in my last post:
I have done a ton of tests like this, I also followed the loopback testing as described on Logicprohelp.com.
Yes I tried it with all PDC modes, SW monitoring on AND off.
I am truly beginning to think that this is a major bug of some sort.
Anyone else out there with hardware that reports latency to Logic (RME, Metric Halo, and Apogee stuff are ones I know that do this) experiencing this abberation?
thanks

Similar Messages

  • External Midi Events Playing Too Early

    Hi there. Got a bit of an issue with midi timing under Logic 8, I run an Emagic AMT8 and a MTP AV as my midi interfaces but I'm noticing the midi events are playing before audio events, ie if I've got a bassline running on an plugin instrument, copy it to an external midi track and trigger a midi synth the synth is playing back earlier than plugin by about -120 ticks or whatever the delay compensation unit is in the inspector. This is global across all midi ports. I've got full plugin delay compensation turned on for the audio, my buffer is 512 (I use 2 UAD cards and thats the recommended setting)
    I've hunted high and low through the manuals but can't find any parameter or reason why this would globally apply across all external midi ports, any suggestions greatfully appreciated as its driving me nuts.

    Well Logic's Plug In Delay Compensation only works for the native Plug Ins not for external Midi stuff so the best thing to do is to record your external Midi as Audio data and align it with the rest of the music otherwise you'll get grey hair trying to find the correct delay offset to sync your external Midi.

  • External MIDI recorded as Audio is early

    Why is it when I record MIDI data sent from Logic 8.02 to an external synth module and recorded back to Logic as audio is the audio earlier in time than the MIDI?
    I played with various delay comp settings and this didn't seem to help.
    Many thanks!
    Alan Hayes

    I have a new Apple dual quad core 2.8Ghz Mac,10 GB RAM, 2TB HD,Apogee Ensemble, Emagic Unitor 8 MKII(USB),Logic Pro 8.02,OSX.5.4.
    I am not trying to slave a drum machine or anything else with a clock or any sync messages at all, I am just simply playing back a MIDI sequence from within Logic routed to an external MIDI synth module and recording it back into Logic as audio.
    The audio recording is earlier than the MIDI Logic sent out.
    This happens with all the MIDI external synths and drum machines I have treid not just this particular unit.
    I played with buffer settings, no difference,I turned on and off plugin delay compensation,no difference,BTW this is with a brand new song not made from any template, only one audio track and only one MIDI track, I played with recording delay and got close with a delay of 118 and the audio on beat 1 would be late then on 2,3,4,5,6,7,8,9,10.......it would be early, then on bar 25,26 it was right on time and then it started to get later for every consecutive beat.
    Since Apple removed the ability to sync to an external MIDI clock in version 8, now I have to send my clients a MIDI clock and record their data and send it back via MIDI to their workstations or drum machines and now it won't record in time?
    I have worked with Logic since ATARI 1040STe back in the late 80s and it was always rock solid in the realm of MIDI from whence it came.
    Is there a solution to this I have overlooked?

  • External Midi Plugin and Midi Output Delay

    This one is fairly esoteric but has anyone run into the following problem or have a workaround?
    I'm trying to incorporate the External midi plugin into my setup so I can use the new midi plugins, but I cannot correctly calibrate my system when using it. My calibration technique invoolves setting delay for each synth to the slowest of the bunch and then compensating for all in the Sync > All Midi Out  > Delay preference. However, when you use the external midi plugin this control has no effect. Running the synths as standard midi does work but then you lose the option of using the new midi plugins.
    If verified, does anyone know if this issue will be resolved in an update?
    Thanks,
    David

    Pancenter,
    Thanks for replying. I haven't had internet in a couple days and I'm back on now. Time Warner Cable is sometimes unstable around my area.
    Logic:
    I've been trying different things for the last couple days and nothing works.
    I replayed and recorded a 4 bar piano part and made sure that the hits were as close to the grid as possible. It sounded fine on MIDI Recording. But on MIDI Playback Here's what I found: The Midi data is not misplaced, it's right where it should be.  But the actual sound is delayed on playback.
    I have a PreSonus Monitoring Station. The outputs of the Motif go straight into the Traveler (In 5-6). The Main outputs on the Traveler go into the PreSonus Monitoring Station as well as my KRK Monitors. I control the volume from the Monitor Station.
    Software Monitoring and Independent Monitoring Level are both enabled.
    I don't get it...Please help.

  • MIDI Cables and Audio Interface

    Hi, are any of you guys running GB with a USB MIDI cable and the Audio box hooked up at the same time?
    I am experimenting with GB with an iMic USB and the M-Audio UNO USB MIDI and everything is very noisy.
    If you have a setup like this, is it working for you?
    Thanks Steve

    here are some of the most popular interfaces around here:
    http://www.bulletsandbones.com/GB/Interfaces.html

  • External Hard Drive and Audio Recording Application

    Hi, hope everyone is doing well today. I'm new to this forum but I have been occasionally browsing it from time to time and find it very useful. So I figured I would post a couple questions that I have.
    First of all I would like to tell you all excatly what I want to do with my computer. Currently I am trying to optimize my computer for the Audio Recording Application I have *Cubase SX 3* I recently just upgraded my RAM from 512 KB to 1.5 GB. My next purchased is most definitaly going to be an external hard drive, which leads me to my first question.
    1. If someone could recomend me an external hard drive that is abosolutly amazing for audio recording and such around $150. I would ONLY be using the drive to save my audio files. Definitaly needs to be firewire also.
    2. Next question is. I've heard of people booting from their external hard drives which has nothing but there OS and there audio recording application. That way when they boot it up they don't have processes running "Behind the scenes" and taking up some processor power. Is this true? If so, how would you going about doing this and what would I need?
    3. If anybody else that is reading this is like me and does alot of audio editing on their iMac G5 computer if you could give me some tips in optimizing the performance of the computer in order to get the most out of it.
    Any help would be greatly appreciated.
    Thanks ahead of time everyone.
    Bard
    iMac G5 w/o iSight   Mac OS X (10.4.4)   20" screen 2.0 Ghz, 1.5 RAM, 250GB Hard Drive

    1. If someone could recomend me an external hard
    drive that is abosolutly amazing for audio recording
    and such around $150. I would ONLY be using the
    drive to save my audio files. Definitaly needs to be
    firewire also.
    Hard drives are pretty much the same. 7200 rpm are obviously a bit faster than 5400rpm. Why Firewire? USB 2 is about the same speed as standard Firewire 400, but the drives are cheaper.
    2. Next question is. I've heard of people booting
    from their external hard drives which has nothing but
    there OS and there audio recording application. That
    way when they boot it up they don't have processes
    running "Behind the scenes" and taking up some
    processor power. Is this true? If so, how would you
    going about doing this and what would I need?
    OS processes are going to be running in the background regardless of which disk the OS is on, that's what an OS does! If you don't want more processes simply make sure you don't have any other apps open. I don't know Cubase, but a G5 will handle video editing along with background tasks no problem, and video editing generally involves far more data manipulation than just sound, even if you're doing multiple tracks.
    You can easily install the OS on an external hard drive using your original system install disk. Simply connect the drive and choose that as the destination in the installer. To boot from that you would choose it in System preferences/Startup Disk. You could minimise that system by deleting other applications from that drive's Applications folder, turning off internet connections, disabling all widgets etc, but as long as you only have Cubase open it shouldn't make too much difference.
    3. If anybody else that is reading this is like me
    and does alot of audio editing on their iMac G5
    computer if you could give me some tips in optimizing
    the performance of the computer in order to get the
    most out of it.
    There's not really much else to optimise. Modern Macs are not like computers of old, and OS X is a very modern system, not requiring the type of disk optimisation etc that there used to be.
    See: http://docs.info.apple.com/article.html?artnum=25668

  • HELP! External MIDI is playing EARLY compared to the audio tracks!

    Hi Guys
    I have a project in L9 which has about 12 audio tracks, each running a few effects (fairly basic ones, nothing too heavy).
    Tonight I am recording a rhythm part on an external MIDI device (my Kurzweil synth). I'm quantising this part to 1/8 notes, and in the piano roll editor, it's lining up perfectly after quantization.
    However, when I play back the project, the MIDI is all EARLY!
    I've tried soloing just the MIDI and the click, and the MIDI part runs uniformly early compared to the click track.
    I believe this has something to do with the delay compensation that is in effect across all the audio channels... what's happening is that all the audio content is being delayed so all the tracks sync with each other. But for some reason, MIDI is not part of this delay compensation, and is playing in perfect time, and hence sounding early compared to the audio material.
    I've done a test new project with just one MIDI track, and when quantized, it DOESN'T suffer this problem... ie, it aligns perfectly with the click track.
    Is there any way to get external MIDI instruments to be part of the delay compensation process? Or is there some other solution to this issue?
    Really desperate here as this has come out of the blue and I can't think of any way to solve it!
    Thanks heaps guys,
    Mike

    yeloop wrote:
    Is this something new for Logic 9?
    I don't know, I have never used external MIDI with Logic (8 or 9) - but think it is new, yes.
    I wonder if there's a way to set the global default for MIDI so that it always has delay compensation? I can't see why anyone would want to use an external MIDI device and not have it in perfect time with their audio material!
    Yes, there is. You'll have to set it up in AMS first (choose *New Device*, and then configure the device and cable it) In Logic, you'll have to go into the Environment. You need a *Standard Instrument Object* for a monotimbral device, a, *Multi-Instrument Object* for multitimbral devices and a *Mapped Instrument object* for Drummodules. Explanation starts on pg 1082 of the LP9 pdf manual.
    Once it is all setup, you can make a template of it, or you can import the Environment layer into new projects.
    regards, Erik.
    regards, Erik.

  • Audio track from EXTERNAL midi

    Hi,
    Logic 9 doesn't seem to allow me to create an audio track from an External midi instrument. If I'm wrong, how do I accomplish the task?

    Hi Spheric, and thanks for your input.
    It seems that Logic 9 treats External midi and Internal midi differently. I brought this up at a One-to-One session and
    1) we had to change Preferences/Audio/to "Slow (CPU saving) in order to Solo the external midi track, and
    2) the track would not transfer to the Audio track that I set up, even at this slower CPU setting.
    I've read other complaints about this on the Net - but with no answer yet.
    I appreciate your getting back to me,
    Paulie too

  • How do you record an external Midi Instrument + Software instrument track down to a combined Audio track ?

    I have two piano sounds I'm trying to blend into one. One is an external MIDI module set up as an external instrument within Logic and the other is a software plugin instrument (Ivory II). I'm trying to record the blended pianos into a single audio track so I can ditch the midi track and more so the CPU intense software Instrument track (it's killing my setup....). For the life of me I can't figure out how to assign both these entities as inputs and get them to record simultaneosuly onto an audio track.
    My setup is a Presonus Studiolive 16.4.2 with the following assignments:
    The external MIDI module's audio output is routed stereo directly into channel strips 9 and 10. By default the firewire output of this channel strip is returned to firewire outputs 9-10 on the studiolive, but this really doesn't matter since recorded audio is being monitored thru the main output buss assigned to channels 17 and 18.
    My software plugin (Ivory II) is routed to output channels 17 and 18 which is the default setting for routing the output to the master buss for the Presonus.
    On my audio track that's setup in Logic I can assign the inputs to 9 and 10 and I get the external midi module's output to record, but I cannot find any way to get the software instruments output into this mix because there is no input assignment for this.
    Is there any way to combine these two entities and assign them to record onto a single audio track or am I missing something here? If there's no simple way to do this, can somebody offer any tip or ideas on how to accomplish the same thing here. I really need to ditch the software plugin. My setup only seems to be able to handle one plug in at a time on the software instrument side. Not sure why that is because my setup is not that old and the memory on my MBP is maxed out at 4GB....but that's another topic of discussion
    Any suggenstions would be much appreciated...

    Thanks for the reply....
    I actually tried freezing the software instrument track and that had little if no effect on CPU. I then read in the book or somewhere that the freeze function really only works on effect plugins. Don't know if that's true in all cases, but that seems to be what's happening.  Still would like to combine these tracks and I'm guessing I'm going to have to get creative with bussing or subgroups to make this happen. Unfortunately I think the fact that my Presonus board has hardmapped output routings for all the inputs makes that difficult, but haven't actually tried yet. I'm thinking if I can reroute the midi modules audio output input into the Presonus to a subgroup and then route the software instrument plug in to the same subgroup that I can then mix/capture this and hopefully route the audio's input to the subgroup to pick up the mix.
    Does this make sense to anybody reading this?
    We'll see and I'll post the results if it works....
    thanks...b

  • Annoyance with Audio Midi Setup and ports in Logic

    Hi all,
    Just wondering if anyone else is annoyed with the way midi ports are addressed in Logic, in relation to Midi control of various commands in Logic.
    A simple case in point for me is when I have my Virus TI turned on, I have one set up of logic_cs preferences and another for when my Virus TI is turned off. The only around this is to double up on the settings within the controller assignments window.
    So you buy a new piece of external midi kit and all of a sudden all your previously setup controllers stop working..... So you have to re-enter them all again one by one.
    Sometimes adding or removing a device, doesn't affect it at all... Just depends on the order of the ports on the physical input (in the environment).
    If you could rename the ports in the Audio Midi Setup and change the order in which they appear, you might have some control over the random nature of the problem.
    Has anyone else run into this, or am I the only bothering with it?
    Matt

    It's a well documented and long outdated situation.
    See this thread.
    http://discussions.apple.com/thread.jspa?threadID=1951148&tstart=15
    pancenter-

  • Mixing when using external midi devices . . .

    Hi,
    This is the first time I'm mixing a project using an external midi device. Formerly, using an older version of DP, I would record each track from the midi device into an audio track before mixing because those tracks don't "bounce" when mixing. Anybody here who uses external devices do it differently?
    Thanks, josf

    Using the external I/O plug in you can bounce your external midi instruments to audio tracks in realtime in logic, but you have to add the New multi instrument in the environment so that it can be represented in the external destination parameter of the EXternal I/O plug in.
    At least I think this is how things work. You also need an audio interface with the outs of your hardware to the ins of the inputs and the midi cables configured.
    But.. I think there is a latency issue there.. anyone know how to compensate for this? Like if I bounce a track in realtime in logic.. it records the time that it takes the audio to "get into" the software.. It never bounces a track right on the beat, as if I were to bounce a track from say the EXS sampler.. When I do it inside logic it bounces it right on the beat.. with no "dead space" beforehand.. but if I use external equipment there is always a lag.. any suggestions?

  • PDC & External Midi Device Delays

    Hi All,
    Got my head around the PDC - i think , but -- Logic states that :
    ' Another effect with delay compensation set to All is that MIDI tracks triggering external sound modules will be out of sync. This is because Logic has no direct control over the audio output of external devices. A possible solution for this would be to route the audio outputs from the external MIDI devices to inputs on your audio hardware and monitor them through Logic. This way, the audio streams from the MIDI devices can be compensated during playback. Using Logic's External instrument to route MIDI to your external devices is an ideal way to work in this situation. '
    Question : So what would you do if all of your inputs were being used from other sources ( Hardwired / or even if you had only 2 ) or you did not have enough inputs to cater for simultaneous internal monitoring from your midi gear- ( phew big sentence ! ) but still need the ALL setting for PDC selected because of the induced latency from plugins . How can you compensate for the external midi delay in the new logic 7 if you cant monitor internally as they suggest ? This was not the case in version 6 and i am pretty worried my clients projects will all now play out of time ! Hope i explained correctly and you understand my question. Please dont say bounce them !!
    Thanks and look foward to youre suggestions

    Presumably, all you would need to do is have a stereo submix of your external MIDI gear coming up on a stereo input object (software monitoring on, obviously.)
    The whole submix would therefore be PDC-delayed as necessary to match up with the rest of the audio, and you could bounce (real-time only of course) to include all your external instruments in one go.
    What I do is have all external hardware coming up in a mixer (Mackie 1604-VLZ), so you could record individual channels of submixes back to the computer as necessary.
    However, the best solution for most cases is to record your external MIDI gear as audio, which is what I do when I've finished editing, keeping the MIDI tracks just in case.
    This is also handy as you can process with internal FX, automate and offline bounce, and don't need to worry about having all the hardware when you open up the song in a couple of years. (Although you should keep sysex dumps etc as well, obviously...)

  • Serious external Midi issues

    Back in Logic 8, and earlier versions of Logic 9, I used to be able to just open up an external midi track, and play my keyboard out of it, but these days, the only way to hear an external midi is if I arm an audio track.... what's going on, what happened? and how can I make my keyboard sounds play just from the external midi... thanks!

    Pancenter,
    Yes.. I do see the occasional minor variations much like yourself when I sync up to my Oasys or more usually the Motif... to a fair sized and complicated project,,. Maybe +/- 1.. or on rare occasions +/- 2 bpm... but nothing close to the OP's +/- 5 bpm experiences...
    It actually got better for me when I installed 10.8.x... along with the newest Motu drivers.. and in fact I can't remember the last time I had any unworkable issues with syncing though admittedly I haven't done that much syncing recently.
    I do have a project coming up in the next 10 days..  that will require me to use the Oasys synced to Logic so I'll make a note of any issues i have and post back if any occur.
    As an aside, I have recently been doing a lot of work with iPad Instruments and Arp Apps and Logic... and the sync as been rock solid over USB...

  • Logic External Midi Change. Please Help

    In Logic 8. You used to be able to open up JUST an external midi track and hear audio from your external midi track. Now you need to open up an audio track and have it on listen with your external midi armed! verry annoying. This hinders my work flow a little bit. Did something change or is it a setting that's in the environment that I need to activate? Thanks!

    KennaOkoye wrote:
    pancenter, when i worked with multiple channels on my korg triton simultaneously i used 16different external midi set to appropriate midi channel got audio bak on all... didnt do ur instrument track plugin method
    Hi
    As I said previously, if you are using the External Synth multi-timbrally, the External Instrument plugin will probably NOT be of any help. (The plugin routes MIDI out a particular channel and returns the audio via a pair of inputs. Unless you have multiple outs from the synth, and multiple Ins available on your interface, you will end up with all the audio from the synth appearing on all the tracks simultaneously... not good.
    If you are not using direct monitoring via your interface (as mentioned by pancenter), simply create an Aux channel for your synth audio return, and you are good to go.
    As best I recall, no version of Logic has ever done this automatically.
    CCT

  • Yamaha MO8 and Korg Volcas with Logic Pro X- recommendations for mixer and audio interface

    I plan to use Logic Pro X to access and configure the patch list for my Yamaha MO8 workstation. The Steinberg software I downloaded previously didn't work and never allowed me to configure the sounds. From what I've heard, I was told to use a cheap mixer or a Audio/MIDI interface (like the Scarlett 2i2 or 4i4). The Yamaha MO8 will be used as a master and has MIDI IN, OUT, and THRU. I also have the Korg Volca synths to use as slaves (they only have the MIDI IN port), and plan to connect them to the MIDI THRU on the keyboard. I already have the Yamaha USB driver installed, and the Mac recognizes the device. I also have the Portmidi app and wonder if that will allow me to see the patch list (with the actual names, not numbers).
    What mixer and audio/MIDI interface do you recommend to use the Yamaha MO8 and the Korg Volcas? Just to be clear, I don't want to use software synths, but would like to use the external instruments to get the audio (which I know can be selected through the Environment Panel on Logic Pro X).

    Anything with 2 audio inputs and 2 MIDI outs.
    -Out HP jack of Volca-1/8 to 1/4 adapter into Audio interface 1 (For any that are stereo use both 1 and 2 and use a Y splitter in addition to 1/8 to 1/4 adapters.
    -Midi out from interface to Midi in of volca (Or buy a USB to MIDI interface for about $35)
    -When starting up the volcas hold down the "Memory button" the LED will tell you what MIDI channel it is set to, you can change it if you wish)
    -Create external MIDI track and set it to the same channel as the Volca (Only if you want to do sequencing in the DAW, if thee Volca sequencer is handling it then not necessary)
    -Patch together the Volcas via the "synch out/Synch in" jacks to insure they are synched
    -Record them all together or one at a time, depending on how many simultaneous tracks your interface can handle.

Maybe you are looking for