Interpolating between the values in a list - Refining/ Filling a list

Friendly Coder's icon

Hey guys,

I've been trying to do a seemingly easy thing for the last hours and I'm almost there - but i can't wrap my head around why it's not working the way i expect it to. It's probably a timing issue but there's so much going on at the same time I can't figure it out myself, so maybe you could help.

The idea of this patch is:

I have a list (eg. [1 2 3 4])

I want to double the size of the list and fill the spaces between the values with interpolations between them like this(in my specific case i want to "refine" a multisliders look with this later on):

[1 1.5 2 2.5 3 3.5 4]

Sometimes i get it to work by changing the lookup number manually but the one button solution never works.

Any ideas?

Or maybe there's a better object to do this?

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

Friendly Coder's icon

I started all over and now it's working, using the vexpr object to get the "inbetween" values.

Just surprised on how rather complicated this turned out for such a seemingly simple task.

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

double_UG's icon

ZL ........................................................................

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

Friendly Coder's icon

thanks!

i only looked in the zl documentation under basic tab... was looking for something like lace, just didn't know what to look for :D