How to line multiple values between succeeding lists
Hi guys,
I'm a newbie and I can't find any example about it. I have a list of 70 values updating every second (so the 70 values change every second). I'd like to line each value: the 1st of the former list with the 1st of the following list, the 2nd with the 2nd, etc.
I suppose there's a brighter method than unpack the list, use 70 [line~] objects and pack together again...
Thank you for your help.
Check out [zl lookup].
Thanks for your reply metamax, but I don't understand how to use [zl lookup] for my purpose.
This is my example patch:
As you can see [route] unpacks the list, while I'm searching for an object that can line the entire list value-by-value (like my example) without unpacking it.
Thanks
...What about [jit.slide] instead?
See https://cycling74.com/forums/list-interpolation-and-msp
Pedro Santos linked this patch:
It sounds promising for my purpose, isn't it?
I haven't looked closely at your patch but Pedro's method looks promising. Also check out [pipe] for a similar type of control. Or consider using msp to process the flow of the list. Meanwhile, I am saving Pedro's patch. :)
something with vexpr ?
Thank you all guys! All your solutions are brilliant.
If I understand correctly, your abstraction Mr. Kopec ramps between two lists even if with different size, is that correct?
This brings me to another question: let say I have a list of 10 floats, and I want to obtain a list of 54 floats that are the former 10 floats + 44 interpolation floats in between.
Which is the easiest solution? Working with function? vexpr?
Thanks again
Ah! I just remembered a patch I made a while ago to distribute easing equations across intervals of time using [pipe]. I was looking for a more elegant solution but it works well for lists of fixed length. In the example, a single slider input is expressed as a list of changing values that are defined by the modes of one of Penner's easing equations (in, out, inout). List elements continuously update on a delay chain. It can be adapted to take a list from [multislider].
imho, in Max domain, function is a good way to obtain values between breakpoints with an uzi 44. In MSP and gen~, idem between 10 samples in a buffer. Jitter, i don't know enough, saving Pedro’s patch too..!
vexpr seems to take care of the littlest list received, i believe the limit is 256 items. For me, depends of your use of these lists.
AK's patch is very nice, "tout terrain". Thanks !
zzz
haha saved Metamax's patch too !
Yes, beautiful patch, Metamax!
Wow, fantastic!