Microsoft DirectX 9.0

IDirectMusicChordMap8::GetScale

The GetScale method retrieves the scale associated with the chordmap.

Syntax

HRESULT GetScale(
  DWORD* pdwScale
);

Parameters

pdwScale

Address of a variable that receives the scale value.

Return Values

If the method succeeds, the return value is S_OK.

If the method fails, the return value can be E_POINTER.

Remarks

The scale is defined by the bits in a DWORD, split into a scale pattern in the lower 24 bits and a root in the upper 8 bits. For the scale pattern, the low bit (0x0001) is the lowest note in the scale, the next higher (0x0002) is a semitone higher, and so on for two octaves. The upper 8 bits give the root of the scale as an integer between 0 and 23 (low C to middle B).

Requirements

  Header: Declared in dmusici.h.

See Also