DMUS_IO_STYLECURVE

The DMUS_IO_STYLECURVE structure contains information about a curve in a style. It is used in the Style Form.

typedef struct _DMUS_IO_STYLECURVE {
    MUSIC_TIME  mtGridStart;
    DWORD       dwVariation;
    MUSIC_TIME  mtDuration;
    MUSIC_TIME  mtResetDuration;
    short       nTimeOffset;
    short       nStartValue;
    short       nEndValue;
    short       nResetValue; 
    BYTE        bEventType;
    BYTE        bCurveShape;
    BYTE        bCCData;
    BYTE        bFlags;
} DMUS_IO_STYLECURVE;
 

Members

mtGridStart
Start time of the grid in which the curve occurs.
dwVariation
Which variations this curve belongs to. Each bit corresponds to one of 32 variations.
mtDuration
How long the curve lasts.
mtResetDuration
How long after the curve is finished until the reset value is set.
nTimeOffset
Offset from mtGridStart at which the curve occurs.
nStartValue
Start value.
nEndValue
End value.
nResetValue
Reset value, set after mtResetDuration or upon a flush or invalidation.
bEventType
Type of curve. The following types are defined:

DMUS_CURVET_PBCURVE
DMUS_CURVET_CCCURVE
DMUS_CURVET_MATCURVE
DMUS_CURVET_PATCURVE

bCurveShape
Shape of curve. The following shapes are defined:

DMUS_CURVES_LINEAR
DMUS_CURVES_INSTANT
DMUS_CURVES_EXP
DMUS_CURVES_LOG
DMUS_CURVES_SINE

bCCData
CC number if this is a control change type.
bFlags
Set to DMUS_CURVE_RESET if the nResetValue must be set when the time is reached or an invalidation occurs because of a transition. If 0, the curve stays permanently at the new value. All other bits are reserved.

QuickInfo

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in dmusicf.h.

See Also

DMUS_CURVE_PMSG, DMUS_IO_CURVE_ITEM