# MIDIBus: extending Advanced MIDIMessageIO to handle MIDI Patch Change output

**URL:** <https://discourse.processing.org/t/midibus-extending-advanced-midimessageio-to-handle-midi-patch-change-output/39900>\
**Category:** Libraries\
**Created:** [November 27, 2022, 4:13pm UTC](https://discourse.processing.org/t/midibus-extending-advanced-midimessageio-to-handle-midi-patch-change-output/39900 "2022-11-27T16:13:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m47k0](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@m47k0](https://discourse.processing.org/u/m47k0)\
**Post date:** [November 27, 2022, 4:13pm UTC](https://discourse.processing.org/t/midibus-extending-advanced-midimessageio-to-handle-midi-patch-change-output/39900/1 "2022-11-27T16:13:36Z")

</div>

Have been generating data which I map & output as MIDI controller change data with TheMIDIBus, no problem.

I now want to output Patch Change data, which out the box TheMIDIBus doesn’t appear to handle.

In the MIDIBus Advanced MIDIMessageIO example it looks like some byte values might be used to get the output to be a PC value.

Have been also looking through regular javax.sound.midi documentation which is completely over my head.

Also tried resources such as

> **[Java | MIDI Introduction - GeeksforGeeks](https://www.geeksforgeeks.org/java-midi)**
>
> A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.

very little of which makes sense to me.

Anyone who laughs at a bit of raw java got any clue here?

thanks

Mark
