|
Timing Information
Timing information for a MIDI event is stored in the dwDeltaTime member of the MIDIEVENT structure. Time is given in ticks, as defined in the Standard MIDI Files 1.0 specification. The length of a tick is defined by the time format and
possibly the tempo associated with the stream. For more information about streams, see MIDI Streams.
A tick is expressed either as microseconds per quarter note or as ticks of
SMPTE (Society of Motion Picture and Television Engineers) time. Applications that
send MIDI messages individually or use unprocessed MIDI messages use quarter
note time and tempo information to determine the duration of a tick.
Applications that preprocess MIDI messages can store the elapsed time as a count of the
SMPTE units being used.
Quarter note time is indicated with a zero in the high-word bit (bit 15) of
the time-division word. The remainder of the word contains the ticks per quarter
note. A tempo associated with a stream of MIDI data is kept in units
(microseconds per quarter note) consistent with the Standard MIDI Files 1.0 specification. For example, a quarter note in 4/4 time that uses a tempo of
500,000 microseconds per quarter note plays at the rate of 120 beats per minute.
SMPTE time division formats completely specify the length of a tick without
the need for tempo information. In using SMPTE time formats, MIDI sequences can
be synchronized with other SMPTE events, such as video or striped audio. SMPTE
time is indicated with a 1 in the high-order bit (bit 15) of the time-division
word. The rest of the most-significant byte specifies the SMPTE format in use as
negative values. The supported SMPTE formats and their corresponding values
(in parentheses) are 24 (-24), 25 (-25), 30 (-30), and 30 drop (-29). The low
byte of the time-division word specifies the number of ticks per SMPTE frame.
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|