GestureSynth.me

Music calculator

MIDI Program Change Calculator

Generate MIDI 1.0 Program Change hex bytes from a displayed program number and channel. Includes zero-based numbering and bank-selection notes.

midi program change hex

MIDI Program Change Calculator guide

Prepare the two bytes of a MIDI 1.0 Program Change message when a device labels patches from 1 to 128. The calculator exposes the zero-based wire value so you can compare the result with a MIDI monitor.

Play the instrument ↑
Input reference
The status byte is hexadecimal C0 plus channel minus one.

Formula and input units

The status byte is hexadecimal C0 plus channel minus one. The data byte is displayed program minus one. Channels run from 1 to 16, while the transmitted program data runs from 0 to 127. A complete standalone Program Change message contains this status byte and one data byte.

Worked examples

Displayed program 1 on channel 1 produces C0 00. Displayed program 128 on channel 16 produces CF 7F. These endpoints check both the channel nibble and the program range without requiring a connected synthesizer.

Displayed program 10 on channel 3 produces C2 09. A monitor showing C2 0A instead is carrying wire value 10, corresponding to displayed program 11 under the one-based convention used here.

Using the result

Check the destination instrument manual for its numbering convention first. If its program list already begins at zero, add one before entering the displayed-program field on this page. Keep a record of both the user-facing preset label and the actual hexadecimal bytes.

Select the intended receive channel on your instrument and compare with the channel in the generated status. A device operating in Omni mode may respond on several channels. When debugging, isolate one receiver and verify a single known program before preparing an entire performance set.

Verify a preset command before a performance

Prepare a small reference set before programming a controller. On channel 1, displayed programs 1, 2 and 128 produce C0 00, C0 01 and C0 7F. On channel 2 the same programs use C1 as the status. The data byte remains the same while the channel changes. A hexadecimal MIDI monitor should make these two independent parts of the message easy to identify.

If a device exposes presets A01 through A16, its visible labels may not correspond to a continuous 1–128 list. Look for a program-map table in its documentation. For example, a visible label could map to wire value 32 even though the name contains 01. In that case, enter displayed program 33 to generate data byte 20 hexadecimal under this calculator convention, then verify the mapping on the receiver.

Bank Select messages can precede a Program Change and may be remembered by the destination. When an apparently correct command recalls the wrong sound, examine earlier bank-related events as well as the current two bytes. A device may support only a subset of banks or apply a pending bank change when Program Change arrives. Preserve the order documented by that device when testing a combined sequence.

For an exported MIDI file, a raw Program Change byte pair is only part of a track event. A delta-time VLQ generally precedes the status or running-status data. Track chunks also carry length information and other events. Keep a complete file backup when examining byte offsets, and compare a decoded event view with the hex bytes to avoid mistaking a timing field for a program number.

Assumptions and limits

Bank selection usually involves additional controller messages or a device-specific mechanism. This page creates the Program Change message itself. The same program data can select different sounds when the current bank, instrument mode or sound library changes.

The form neither connects to MIDI hardware nor sends messages. Running status may allow repeated channel messages to omit a status byte in an existing stream, but the result here includes its own status for clarity. MIDI files also need their surrounding timing and track structure.

Answers before you play

Common questions

Why does program 1 end in 00?

The form uses one-based display numbers. MIDI 1.0 transmits the program as a seven-bit value from 0 to 127.

Does C0 00 always select a piano?

The receiving device and bank determine the sound. A General MIDI mapping is one possible mapping.

Can I use channel 16?

Yes. Channel 16 uses CF as the Program Change status byte.

Can the calculator generate a full MIDI file?

It produces one standalone MIDI 1.0 Program Change message. A Standard MIDI File requires a header, track chunks, timing and track termination. Use the related VLQ and tick tools for those individual timing calculations.