Forums > MaxMSP

replacing 5 split values

December 3, 2012 | 9:57 pm

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
December 3, 2012 | 10:04 pm

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

– Pasted Max Patch, click to expand. –

December 3, 2012 | 10:38 pm

MIB!

I apologise I totally overlooked this!

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

Nice one.


December 4, 2012 | 12:14 am

Hi astevens,

if that’s how you’re using [split], you might be interested in trying [sadam.split] from my library (see http://cycling74.com/forums/topic.php?id=42930 ). It’s basically a [split] with as many ‘splitting points’ as you wish.

Cheers,
Ádám


Viewing 4 posts - 1 through 4 (of 4 total)