replacing 5 split values

astevens's icon

Hi all,

Firstly, thanks for the help so far.

My next head scratch.

I'm trying to replace 'split' object arguments that are generated from a changing source.

eg,

I have 5 split objects containing 10 arguments.

split 10 20 split 20 30 split 30 40 split 40 50 split 50 60

I'm then randomly generating different split arguments that I need to replace the above with.

So, I may need split 10 15 split 15 21 split 22 30 etc etc.

How could I achieve this without having to rewrite my new split ranges every time?

I've tried using prepend but can't seem to find a way around this problem!!

Thanks again.

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

I'm not sure I understand the problem. split changes its values with the middle and right inlets...

astevens's icon

MIB!

I apologise I totally overlooked this!

I've been deep in Max for 8 hours, I need a break perhaps.

Nice one.

$Adam's icon

Hi astevens,

if that's how you're using [split], you might be interested in trying [sadam.split] from my library (see https://cycling74.com/forums/announce-the-sadam-library-version-2012-10-08 ). It's basically a [split] with as many 'splitting points' as you wish.

Cheers,
Ádám