richard-uk1/nom-midi-rs

Implement codegen for midi

Opened this issue · 4 comments

At the moment, the library only implements parsing. It could be extended to implement codegen/serialize/whatever you want to call it.

Yes, that would be useful!

It could be done with this:
https://github.com/Geal/cookie-factory
Which is like nom but for serializing.

I'm gonna have a look at this now - I know more about streaming now so I might be able to write a better API.

I'd recommend checking out https://github.com/RustAudio/rimd - it implements both serialization and deserialization of SMF (midi files) and a load of other stuff. I think if I worked on this lib I'd be duplicating functionality.