DMUS_IO_CURVE_ITEM

The DMUS_IO_CURVE_ITEM structure contains information about a curve event in a track. It is used in the Sequence Track List.

typedef struct _DMUS_IO_CURVE_ITEM {
    MUSIC_TIME  mtStart;
    MUSIC_TIME  mtDuration;
    MUSIC_TIME  mtResetDuration;
    DWORD       dwPChannel;
    short       nStartValue;
    short       nEndValue;
    short       nResetValue;
    BYTE        bType;
    BYTE        bCurveShape;
    BYTE        bCCData;
    BYTE        bFlags;
} DMUS_IO_CURVE_ITEM;
 

Members

mtStart
Start time of the curve.
mtDuration
How long the curve lasts.
mtResetDuration
How long after the curve is finished until the reset value is set.
dwPChannel
Performance channel for the event.
nOffset
Offset from the grid boundary at which the curve occurs, in music time. MIDI curves are associated with the closest grid when loaded, so this value can be positive or negative.
nStartValue
Start value.
nEndValue
End value.
nResetValue
Reset value, set after mtResetDuration or upon a flush or invalidation.
bType
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_IO_SEQ_ITEM