I’m working on a patch with lots of linear interpolation in different places, which I currently do with separate instances of ej.function.
But as I am adding more and more instances of ej.function (currently at 25, but this could well go towards 50), I’m starting to wonder if there is a more efficient way to do this interpolation? I don’t need the graphical display all the time, so the processor power required for this is wasted most of the time.
The difficulty is that I occasionally do want to edit the interpolation curves with the graphic interface, so it needs to be on call.
I’d like to avoid using tables and buffers altogether, because all I do is linear interpolation with multiple points (input a value x, get an interpolated value y out). Funbuff can do that without table, unfortunately just with floats.
Though tables and buffers have less gui overhead, they (especially buffers) introduce other overhead and more processing to fill the buffer with interpolated values.
However, I am not sure how to make it work with pattr(storage). The object itself doesn’t support pattr, so maybe I should make a construction where a list is stored with pattr and is injected into ej.fplay everytime a preset is loaded?
If I use textedit I can edit the list on the fly which is convenient, but it seems excessive to use textedit to store lists. Is there a better way?