News for hackers. Stuff that matters.
Re:How will MIDI 2.0 change music? (2020) by WhitneyLand on Saturday October 30, 2021 @05:50PM (#29052574)
What would you have recommended instead of JSON?
Re:How will MIDI 2.0 change music? (2020) by nitrogen on Saturday October 30, 2021 @05:56PM (#29052605)
It's weird to put variable-length text-based serialization formats into something that has to perform in realtime no matter what, on potentially limited hardware.
Re:How will MIDI 2.0 change music? (2020) by m-hilgendorf on Saturday October 30, 2021 @06:24PM (#29052760)
I think JSON makes a lot of sense. It's just orders of magnitude more complex to parse into useful data structures than MIDI1, or any other part of MIDI2.

Since MIDI is already going the opposite direction of say AES67 and reinventing wheels is ok, a custom binary encoding would have made more sense to me. Something that can be encoded in a C89 struct without a ton of trouble or doesn't need much thought put into an allocator on bare metal devices to get the handshake working.

I believe it's not strictly JSON though, I don't have the docs in front of me but iirc strings have a max length. So that's good.

Re:How will MIDI 2.0 change music? (2020) by ldng on Saturday October 30, 2021 @07:43PM (#29053192)
JSON feels like a terrible choice to me, especially on the latency aspect of things.
Re:How will MIDI 2.0 change music? (2020) by pepoluan on Sunday October 31, 2021 @10:58AM (#29057428)
msgpack comes to mind...