Rust Audio

Add wmidi to RustAudio GitHub

I’m the author of wmidi, a lightweight midi library. I was wondering if it would be appropriate to add it to the RustAudio GitHub.

I know we have Rimd, but this library doesn’t rely on heap allocations (Vecs) which makes it more suitable for realtime Audio. So thoughts?

Hi @wmedrano, welcome to this forum. It’s good to have you on board. wmidi is one of my favourite audio crates :slight_smile:

I’m not a member of the RustAudio GitHub group, so I don’t really have a say in this, but I’m slightly in favour since I think it would make wmidi more discoverable. I think this would be a good thing since now it’s sometimes overlooked in situations where it would be a perfect fit.

Concerning rimd: I think that’s not a problem at all since there is almost no overlap in scope between these two crates. rimd can write and parse midi files (which you can’t do in realtime anyway). rimd deals with timestamps, tracks, lyrics etc. and handles the “normal” midi events (note on, …) as opaque blobs of bytes. If you want to go further and see what’s inside these blobs, this is where wmidi comes into play. As you mention, wmidi can also be used in realtime contexts. There’s some small overlap in the sense that rimd has some convenience methods to construct opaque midi events, but that’s all.