Store arbitrary number of values within a Live Set

chapelier fou's icon

How would you store an undefined number of values, or lists in a Live Set ?

For example, if you want to create a device to save/recall "snapshots" for any Live device. Let's say a "snapshot" would be a list of id+value pairs.

I know how to store presets with the pattr system, but my understanding is it works with a predefined number of UI elements. What am I missing ?

Greg Ross's icon

I don’t know how to do it but I think there’s a device in the “performance pack” by Iftah that does something similar? You could maybe open it up and get an idea of something similar to what you’re doing.

double_UG's icon
chapelier fou's icon

Good suggestion.

Meanwhile, I tried with the new [array] object since it has a "parameter mode" attribute, but no luck.

I'm new to it though.

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

...................................................................

chapelier fou's icon

Thanks, but if I want to store several sets of pairs (several "snapshots"), I can't use the pattr system, can I ? (to store different states of the array as pattr presets).

I would have to push/remove new sets in the array, so basically recreate my preset system, right ?

double_UG's icon

I am never tried array with pattr. so I cant say.

With array.push you can add numbers. array.remove removes numbers. There are plenty of array. objects like the zl. objects.

tyler mazaika's icon

[dict] with @parameter_enable is what you want. You can embed arbitrary numbers of values or arrays and other dicts, too.

Basically I would have one top-level dict which stores each snapshot as a child dict.

chapelier fou's icon

Thanks both of you.

I need to make some tests, but from memory, I noticed in the past that [dict] is quite slow to output its contents (where [coll] is super fast) so I'm not sure it will be ok for fast snapshots recall.

Need to compare with the array objects.