Miles Sound System SDK 7.2a

AIL_controller_value

The function AIL_controller_value returns any current MIDI Control Change value for any of the channels used in the specified sequence.

S32 AIL_controller_value(
  HSEQUENCE S,
  S32 channel,
  S32 controller_num
);

In Parameters

S
indicates the sequence from which to retrieve the specified controller's value.
channel
indicates the channel from which to retrieve the specified controller's value.
controller_num
indicates the MIDI controller number whose value is to be retrieved.

Returns

The desired controller's current value as established by the specified sequence.

Discussion

As with all XMIDI functions which require an explicit channel parameter, MIDI channel numbers are passed to and from the MSS API in 1-based format (1-16), rather than the 0-based format (0-15) used when composing MIDI Status byte values.

The you can query any of the MILES_MIDI_VALUE constants.


Group: XMIDI Services
Related Functions: AIL_channel_notes
Related Basic Types: HSEQUENCE, MILES_MIDI_VALUE, S32

For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.