Index   Commented   Search   About

Retrieving the Sequence Division Type

The division type of a MIDI sequence determines the amount of time between MIDI events in the sequence. To determine the division type of a sequence, use the MCI_STATUS command and set the dwItem member of the MCI_STATUS_PARMS structure to MCI_SEQ_STATUS_DIVTYPE .

If the MCI_STATUS command is successful, the dwReturn member of the MCI_STATUS_PARMS structure will contain one of the following values to indicate the division type.

Value
Division type
MCI_SEQ_DIV_PPQN
PPQN (parts-per-quarter note)
MCI_SEQ_DIV_SMPTE_24
SMPTE, 24 fps (frames per second)
MCI_SEQ_DIV_SMPTE_25
SMPTE, 25 fps
MCI_SEQ_DIV_SMPTE_30
SMPTE, 30 fps
MCI_SEQ_DIV_SMPTE_30DROP
SMPTE, 30 fps drop frame

You must know the division type of a sequence to change or query its tempo. You cannot change the division type of a sequence by using the MCI sequencer.

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder

More Online Helps

Win32 Programmer's Reference (win32.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun