DirectX SDK

DMUS_PEGPARAMS

The DMUS_PEGPARAMS structure defines the pitch envelope for a DLS articulation chunk. It is used in the DMUS_ARTICPARAMS structure.

typedef struct {
    TCENT   tcAttack;
    TCENT   tcDecay;
    PERCENT ptSustain;
    TCENT   tcRelease;
    TCENT   tcVel2Attack;
    TCENT   tcKey2Decay;
    PCENT   pcRange;
} DMUS_PEGPARAMS;
tcAttack
Attack time, in time cents. See Remarks.
tcDecay
Decay time, in time cents. See Remarks.
ptSustain
Sustain, in hundredths of a percent shifted left by 16.
tcRelease
Release time, in time cents. See Remarks.
tcVel2Attack
Velocity to attack, in time cents. See Remarks.
tcKey2Decay
Key to decay, in time cents. See Remarks.
pcRange
Envelope range, in pitch units. See Remarks.

Remarks

The DLS Level 1 specification defines time cents and pitch cents as 32-bit logarithmic values. See the specification from the MIDI Manufacturers Association for details about the values in this structure.

Requirements

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

See Also

DMUS_ARTICPARAMS