I'm looking for a nice way to play back a breakpoint function at audio rate.
The idea is to use something like [function] in combination with pattr to
switch curves, and have these curves converted to a lookup table on the fly
for flexible playback. I want to treat the breakpoint function as if it were
continuous data, so I can jump, reverse, speedup etc. at any time.
My first guess is to convert the function to an audio lookup table, but I
can't find a good way to write values to a buffer~ instantly /non-realtime
without the need for custom externals. Uzi-ing every sample using peek~
doesn't feel like the right thing to do.
My main priority is fast curve switching so audio lookup might be overkill
in that sense (?). I think the ideal solution is to interpolate in realtime
between x-y pairs using a signal feed. Like an MSP equivalent of [funbuff]
using floating point values for both x and y.
The only object I know which come close is techno~, but it's capabilities
and functions are too specific for my needs. Anyone experience with this?