Ensuring a (hand drawn) table/buffer has no repeat values?

Rodrigo's icon

So I'm using multislider, listfunnel and peek~ to create a buffer filled with a hand-drawn table.

The idea is to use table interpolation for moving between a large number of parameters, but without having everything move linearly. All the tables are slightly jittery versions of linear/log/quartic curves.

Since I'm using linear interpolation between table values, having repeated values makes my interpolator 'stick' for sections of the sweep.

I can remove duplicates easily enough using zl objects, but is there a way to take repeated values, and move them up or down slightly to as to have no repeated values in the table at all? (while still having exactly the same amount of entries)

I can fill it using a function, but that would remove the jitter from the table.

Max Patch
Copy patch and select New From Clipboard in Max.

Here's the patch:

mark2e's icon
Max Patch
Copy patch and select New From Clipboard in Max.

This could be one solution.
But i am not sure if it is what you're searching for in a sweep-kinda context.

Rodrigo's icon

Something like that could do the trick, though it seems to be clipping the length of the table, and I can't figure out why.

It can also randomly vary the amount it changes by (+/- 0.05 kind of thing)

Max Patch
Copy patch and select New From Clipboard in Max.

This is the kind of sweep I mean.

Rodrigo's icon

Never mind, it was the zl objects 256 item limit thing.

Max Patch
Copy patch and select New From Clipboard in Max.

Here it is shrunk to 256 entries and with a random amount +/-

mark2e's icon

Hi,

Max Patch
Copy patch and select New From Clipboard in Max.

Nice one, Nicolas.
This was my zl-less approach.

Rodrigo's icon

Some real elegant solutions in here. Thanks guys. (I ended up going with one of the first versions, and saving a bunch of buffers to disk to load them up that way).

Emmanuel Jourdan's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Just for the fun, another one…