277 |
|
|
278 |
/** |
/** |
279 |
* Should be called by the implementing MIDI input device |
* Should be called by the implementing MIDI input device |
280 |
* whenever a program change event arrived, this will cause the |
* whenever a program change event arrived. In case the |
281 |
* appropriate sampler channel to be connected with this MIDI |
* respective sampler channel(s) are enabled for MIDI |
282 |
* device. |
* instrument mapping, the respective sampler engine and |
283 |
|
* instrument will be loaded on the connected sampler |
284 |
|
* channel(s) as defined by the respective entry in the |
285 |
|
* MIDI instrument map. |
286 |
* |
* |
287 |
* For example consider a program change event on MIDI channel |
* @e Note: the MIDI instrument map is empty by default on |
288 |
* 3 for program number 18. This would cause this MIDI input |
* sampler startup. It has to be explicitly filled with |
289 |
* device to be connected to sampler channel 18 and would cause |
* entries and the sampler channel(s) have to be enabled for |
290 |
* sampler channel 18 to listen to MIDI channel 3. |
* a certain MIDI instrument table, otherwise program change |
291 |
|
* messages are ignored! |
292 |
* |
* |
293 |
* This is the current, general implementation of program |
* @param Program - MIDI program change number |
294 |
* change events. It might change in future, e.g to allow |
* @param MidiChannel - MIDI channel on which this program |
295 |
* sampler engines to allow by themselfes how to act on a |
* change occured |
296 |
* program change event. |
* @see MidiInstrumentMapper |
|
* |
|
|
* @param Program - sampler channel to connect to this MIDI |
|
|
* input device |
|
|
* @param MidiChannel - MIDI channel on which sampler channel |
|
|
* \a Program should listen to |
|
297 |
*/ |
*/ |
298 |
void DispatchProgramChange(uint8_t Program, uint MidiChannel); |
void DispatchProgramChange(uint8_t Program, uint MidiChannel); |
299 |
|
|