Retrieves the current value of an event in a channel of a MIDI stream.
DWORD BASS_MIDI_StreamGetEvent( HSTREAM handle, DWORD chan, DWORD event );
|handle||The MIDI stream to get the event value from.|
|chan||The MIDI channel to get the event value from... 0 = channel 1.|
|event||The event value to retrieve. See BASS_MIDI_StreamEvent for details on the available event types and their values. With the MIDI_EVENT_NOTE, MIDI_EVENT_KEYPRES, MIDI_EVENT_SCALETUNING and drum key (MIDI_EVENT_DRUM_CUTOFF/etc) events, the HIWORD - use MAKELONG(event,key) - can be used to specify which key/note to get the value from. Special MIDI_EVENT_NOTES and MIDI_EVENT_VOICES events are also available to check how many keys are pressed and how many voices are active, respectively.|
|BASS_ERROR_HANDLE||handle is not valid.|
|BASS_ERROR_ILLPARAM||One of the other parameters is invalid.|
Syncs can be used to be informed of when event values change.