init(channel:programNumber:)
Creates a program change event with a channel and program number.
Declaration
init(channel: UInt32, programNumber: UInt32)Parameters
- channel:
The MIDI channel for the message, between
0and15. - programNumber:
The program number to send, between
0and127.
Discussion
The instrument this chooses depends on AVMIDIControlChangeEvent.MessageType.bankSelect events sent prior to this event.