Skip to content
This repository was archived by the owner on Feb 21, 2026. It is now read-only.

Fixed the ProgramChange function to ensure the generated MIDI message has the correct 2-byte length.#12

Open
SoftenTheGlare382 wants to merge 1 commit intogo-audio:masterfrom
SoftenTheGlare382:fix/program-change-bug
Open

Fixed the ProgramChange function to ensure the generated MIDI message has the correct 2-byte length.#12
SoftenTheGlare382 wants to merge 1 commit intogo-audio:masterfrom
SoftenTheGlare382:fix/program-change-bug

Conversation

@SoftenTheGlare382
Copy link

Background
This PR addresses a good first issue (#5 ) related to the ProgramChange message length not conforming to the MIDI standard.

Changes
Fixed the ProgramChange function to ensure the generated MIDI message has the correct 2-byte length.
Updated unit tests to validate the proper message format.
Testing
All local test cases have passed successfully.
Verified with a sample MIDI file that instrument switching works as expected.
Related Issue
Resolves #5

…ge has the correct 2-byte length.

Updated unit tests to validate the proper message format.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ProgramChange

1 participant