# Best MIDI library to receive MIDI messages in Processing?

**URL:** https://discourse.processing.org/t/best-midi-library-to-receive-midi-messages-in-processing/39579
**Category:** Libraries
**Created:** [November 4, 2022, 4:02pm UTC](https://discourse.processing.org/t/best-midi-library-to-receive-midi-messages-in-processing/39579 "2022-11-04T16:02:49Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![amundsen](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/amundsen/32/2497_2.png) [@amundsen](https://discourse.processing.org/u/amundsen)
#### Post date: [November 4, 2022, 4:02pm UTC](https://discourse.processing.org/t/best-midi-library-to-receive-midi-messages-in-processing/39579/1 "2022-11-04T16:02:49Z")

</div>

Hello,

Which library would you recommend to receive MIDI messages in Processing (running in Windows) ?

I’ve seen there’s the midiBus library. Also, Minim seems to be able to send MIDI messages, but I don’t see any example in this library for MIDI reception.

What’s your advice?

Thank you.

---

<div class="post-metadata">

### Author: ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)
#### Post date: [November 4, 2022, 10:25pm UTC](https://discourse.processing.org/t/best-midi-library-to-receive-midi-messages-in-processing/39579/2 "2022-11-04T22:25:46Z")

</div>

Hi @amundsen,

I didn’t use any of those libraries but here are related threads and resource:

> [@No MIDI library for Processing 3?](https://discourse.processing.org/t/no-midi-library-for-processing-3/6079):
>
> It’s been a while since I’ve used Processing. I’m looking in the library manager and on the libraries listing on [processing.org](http://processing.org) and I’m not seeing any MIDI library. Is there no supported way of sending/receiving MIDI anymore? Thanks, Rob

> **[Scripting Processing With MIDI](https://www.instructables.com/Scripting-Processing-with-MIDI/)**
>
> Scripting Processing With MIDI: Processing is perhaps best known as a generator of sound and graphics, but your sketches cannot only create MIDI messages but listen for them as well. 
> The MIDI messages can come from not just some standard MIDI...

[https://funprogramming.org/123-Controlling-Processing-using-MidiBus-part-1.html](https://funprogramming.org/123-Controlling-Processing-using-MidiBus-part-1.html)

---

<div class="post-metadata">

### Author: ![amundsen](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/amundsen/32/2497_2.png) [@amundsen](https://discourse.processing.org/u/amundsen)
#### Post date: [November 5, 2022, 1:05pm UTC](https://discourse.processing.org/t/best-midi-library-to-receive-midi-messages-in-processing/39579/3 "2022-11-05T13:05:57Z")

</div>

Thank you @josephh. The MidiBus seems to be the best option so far but I have difficulties to have the data refreshed at the pace of draw() function, even with the help of a global variable.

Maybe I could try to use the java.sound.midi directly but it will be much more difficult…

---

<div class="post-metadata">

### Author: ![amundsen](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/amundsen/32/2497_2.png) [@amundsen](https://discourse.processing.org/u/amundsen)
#### Post date: [November 5, 2022, 1:21pm UTC](https://discourse.processing.org/t/best-midi-library-to-receive-midi-messages-in-processing/39579/4 "2022-11-05T13:21:16Z")

</div>

There was some bug in my own code and I have finally managed to use MidiBus as expected.
