GPMID_GetMidiChannel function
Given a port and a channel, retrieves the corresponding MIDI information for the tablature which is currently loaded.
Syntax
GPMID_ENTRY GPMidiChannel GPMID_GetMidiChannel( unsigned int aPort, unsigned int aChannel );
Parameters
-
aPort
The port to retrieve.
-
aChannel
The channel to retrieve.
Return value
MIDI information.
Remarks
Before using this function, GPMID must have been initialized with GPMID_Init and a tablature must have been successfully loaded with GPMID_Load.
There are 4 ports and 16 channels so this function can be called with a port ranging from 0 to 3 and a channel ranging from 0 to 15. Use GPMID_GetTrackMidiPort and GPMID_GetTrackMidiChannel to retrieve port and channel associated to a track.