What I’m trying to do.
Build a reasonable audio sequencer using software and hardware synths as audio servers.
What I’ve got so far
I’ve got a fairly solid single voice version that drives a software synthesizer (supercollider). I’ve POC’d a version of this that does multiple voices and works reasonably well. This is built by adding complexity to the single voice version. Both of these versions are built as genservers.
After building the current multiple voice version, I felt like it should be a better path if I were to have multiple cooperating instances of the single voice version being controlled and synchronized by a separate process.
What I haven’t been able to figure out
How to launch mulitple instances of the same genserver. I’m sure I’m overlooking something basic, but I’m relatively new to genservers. When I try to launch another instance, by calling start_link, as one would expect, it tells me it’s already started. I’ve been digging through docs, but I’ve found no obvious solutions.
I suppose that a more basic question to ask is should I stick with the multi-voice version that I’ve already built using a single genserver? It behaves adequately, but my gut feeling is that it isn’t the right way to do it.