IDirectMusicChordMap::GetScale
This method retrieves the scale associated with the chord map.
HRESULT GetScale(
DWORD* pdwScale
);
Parameters
- pdwScale
Address of a variable to receive 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 (lower 24 bits) and a root (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
OS Versions: Windows CE .NET 4.0 and Windows CE .NET 4.1.
Header: Dmusici.h.
Link Library: Dmusic.lib.
Last updated on Monday, April 12, 2004
© 1992-2002 Microsoft Corporation. All rights reserved.