Could this be possible in RTspice? [dkbuilder](https://linuxmusicians.com/viewtopic.php?p=102568) [has](https://linuxmusicians.com/viewtopic.php?f=44&t=19806) has a similar premise. Maybe the [DPF framework](https://github.com/DISTRHO/DPF) could help.