Contents

sendProgramChange(_:onChannel:)

Sends MIDI Program Change and Bank Select events to the instrument.

Declaration

func sendProgramChange(_ program: UInt8, onChannel channel: UInt8)

Parameters

  • program:

    The program (preset) number within the bank to load. The valid range is 0 to 127.

  • channel:

    The channel number to send the event to. The valid range is 0 to 15.

Discussion

The system loads the instrument from the bank that was previously set by the MIDI “Bank Select” controller messages (0 and 31). The system uses bank 0 if not previously set.

See Also

Sending information to the MIDI instrument