#include <revolution.h>
#include <revolution/syn.h>
u8 SYNGetMidiController(SYNSYNTH *synth, u8 midiChannel, u8 function);
| synth | pointer to user-defined SYNSYNTH data structure |
| midiChannel | controller MIDI channel to obtain |
| function | MIDI controller to obtain |
Returns the current value of the controller.
This function obtains the current value of the specified MIDI controller of the specified MIDI channel for the specified synthesizer instance.
NB: To set MIDI controllers, use SYNMidiInput with standard MIDI controller definitions.
03/01/2006 Initial version.