Single-purpose jitter-free realtime MIDI patchbay/sequencer
Yesterday I posted the same question to r/FindMeADistro but I got no replies, so I figured I should try here.
I would like to turn an older netbook into a USB MIDI router/recorder/sequencer with quasi-zero latency and jitter, only limited by USB's 1000Hz frame rate. A midi message should arrive in one frame and leave with the next or at most second next frame, i.e. 1 or 2ms later, including any midi processing such as arpeggiation, chord triggering or CC translation.
I don't need a general purpose distro, I'm happy to give up networking, audio and all other overhead except USB MIDI and a way to retrieve the recordings. The router/sequencer would be the only thing ever running on this machine, almost like an embedded system, but I'd expect it to be realtime and rock solid. Is it doable or not?
Posted Jul 19, 2022, 8:40 AM UTC
Your resources are out of sync with your requirements tbh. This is doable, but it isn't something that's been solved for you. IMO: design a test that would prove your requirements are being met, pick a few different real-time kernels and options for each element of your software stack, try it with a few different minimal distros (no display manager or GUI obvsly, arch should be on the list, there are other low-spec distros). Try things. See what works.
This really isn't a job for an older netbook at all. Get a piece of hardware designed for this task or lower your expectations. Not saying you shouldn't try still, it sounds like an interesting project you'll learn something from.
I had not originally planned for a side project, but I may give it a go. I'm not interested in doing it with any hardware other than the netbook, since this is first and foremost about turning a useless netbook into something cool as opposed to me needing a latency-free sequencer that bad. Why do you think a netbook would be unsuitable for the task? The processing requirements are negligible. It can do 3-15ms even with something as heavy as AV Linux + Reaper with low CPU load. Also, what do you mean by "no display manager or GUI obviously"? It isn't obvious to me, at least I thought a 4-core CPU, however weak, is enough to promptly process USB messages and run a basic display manager.