Jump to content

Audio midi file matching


kenrob2037

Recommended Posts

Hi All,

I'm running the latest Logic, and when I import an audio and midi file from the same song created in Sibelius, the midi file is always shorter than the audio file. It may have something to do with the reverb tail, but even when all reverb is off, I get the same result.

I've tried stretching the midi track but that just makes it weird. 

Is there any way to make the the length of the audio and midi tracks match each other exactly?

Rob

Edited by kenrob2037
Link to comment
Share on other sites

Is the timing off consistently or does it drift apart more and more?

RE: Sample Rate: yes, if the sample rate of the audio file is 44.1 and the sample rate of the project is 48k the file will be played back slower (IIRC) or the other way around. But it will be wrong.

Edited by wonshu
  • Like 1
Link to comment
Share on other sites

7 minutes ago, wonshu said:

if the sample rate of the audio file is 44.1 and the sample rate of the project is 48k the file will be played back slower (IIRC) or the other way around.

It's the other way around: a 44.1kHz file played back at 48kHz will be played back faster, at a slightly higher pitch, much like an analog tape played too fast, or a 33rpm record played back at 45rpm (for those of us old enough to remember that).

Link to comment
Share on other sites

I checked my sample rates, both the Logic project and the audio files coming out of Sibelius are at 44.1 khz.

As mentioned, I have two tracks, one piano and the other oboe. The piano sound quality is great, but the oboe is poor. So I export the piano as audio and the oboe as midi, so I can use a much better oboe in Logic, but the two files are quite different in their timing and the oboe midi is shorter.

You can see the difference in tack length in the attached screenshot. In Sibelius both are the same length.

Any thoughts?

Rob

 

Screenshot 2023-01-13 at 7.49.00 am.jpg

Link to comment
Share on other sites

The plot thickens.

I decided to create a new song in Sibelius, for piano and violin. The total length was 1:38

I exported the file as audio at 44.1 khz. Then I exported the midi and checked both in the Mac music player, they both said they were 1:38 in length.

But then, I dragged the audio and midi files into Logic, and you can see the results of what logic did in the attached screenshot. 

The longer audio file maybe due to the reverb tail. The audio file has reverb, the midi does not, but I also had the sustain pedal on the piano.

So I got rid of the sustain pedal notation, and turned off all reverb in Sibelius, and re-exported the audio and midi files like before. It made no difference. See screenshot 2.

So for some reason, Logic is adjusting the length of the midi file. In logic, the midi runs for 1:33 and the audio, 1:38.

Got be baffled.

Any thoughts?

Rob

Screenshot 2023-01-13 at 10.31.51 am.jpg

Screenshot 2.png

Link to comment
Share on other sites

Here's what I would do to troubleshoot this:

First, make the waveform display something meaningful either by vertically zooming it or with Region Gain in the Inspector. Do the starts of the first and last notes line up visually between audio and MIDI Regions ?

  • If yes, move on, nothing to see here, note sustain, decay and/or reverb make the tail of the audio Region longer, which is normal
  • If no, does the start of the first note line up ?
    • If no, make sure Sibelius' and Logic's tempo and sample rate are the same and that Sibelius does not add a measure of count-in or similar differently between MIDI and audio.
    • If yes, but both takes drift apart, do the MIDI Region's notes actually fall on Logic's grid ?
      • If no, ask on LPH for a free MIDI File Reader where you can verify this very odd error.
      • If yes, do L and S really run at the same tempo, even if you let them run in parallel ?
        • If no, try to find some other evidence of this massive flaw on the interweb to determine who's to blame, then file a bug report to either Apple or whoever owns S.
        • If yes, the MIDI is fine and the audio is the problem. Are both sample rates really the same, even when checking the file's sample rate in, say, Quicktime player ?
          • If no, make sure S exports at what it says it does.
          • If yes, complain to fuzzfilth who let you jump through hoops for nothing.
Edited by fuzzfilth
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...