Jump to content

MIDI Time Stamp


Recommended Posts

Hi,

in all MIDI Monitors, also in MIOS Studio, there is a "MIDI timestamp" or "MIDI Time Stamp". On the web I could not find what the format of that timestamp is. Can somebody explain that to me? How do I see whether the MIDI Event that I receive contains a timestamp? It should come before the status byte, but how is its format defined? I looked at a lot of "MIDI spec explained" sites, but I did not find an answer anywhere.

Thanks, ALEXander.

Link to comment
Share on other sites

  • 1 month later...

There is a timestamping capability for USB MIDI interfaces, in which the messages are sent to the interface shortly before they are actually to be sent out.  The protocol calls for a timestamp, and when that time occurs, the interface sends out the message.  This is to improve MIDI timing.

MIDI timecode is essentially hours/minutes/seconds/frames encoded over MIDI.  It is used to synchronize devices like DAWs, tape decks, video ... It should not be confused with MIDI clock, which is simply a byte sent out 24 times per quarter note, and its rate will vary depending on the tempo of the music - it's used to sync up stuff like drum machines and sequencers.

Link to comment
Share on other sites

There is a timestamping capability for USB MIDI interfaces, in which the messages are sent to the interface shortly before they are actually to be sent out.  The protocol calls for a timestamp, and when that time occurs, the interface sends out the message.  This is to improve MIDI timing.

Yeh, less jitter, at the expense of latency...

But.. I think you'll find that the timestamping is not part of the USB MIDI protocol itself, and as such, not all drivers support it. For example in windows, the drivers using WDM can have the messages timestamped, but they can also just be fired out, FIFO style. Non-WDM USB MIDI drivers (and those not implementing all the WDM capabilities) don't get the timestamp from the app, so the timestamping has to be generated in the driver and decoded by the interface hardware, and when that is done, it's a proprietary solution. In fact, most drivers seem to make the timestamping, if it is even passed to the hardware, a proprietary implementation. If this weren't the case, almost all USB midi drivers would have comparable timing, and it'd be good. Alas that is not the case :(

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...