Sends a Program Change message to this MIDI output device.
A Program Change message is used to switch among instrument settings, generally instrument voices. An instrument conforming to General Midi 1 will have the instruments described in the Instrument enum; other instruments may have different instrument sets.
Exception Type | Condition |
---|---|
ArgumentOutOfRangeException | channel or instrument is out-of-range. |
InvalidOperationException | The device is not open. |
DeviceException | The message cannot be sent. |
OutputDevice Class | Midi Namespace