Forums > MaxMSP

creating indexes from coll

April 16, 2009 | 12:15 am

i have values in a coll which i’d like to act as indexes, my problem is formatting these to messages which crop a buffer.

here is the coll info

1, 509;
2, 533;
3, 556;
4, 579;
5, 602;
6, 625;
7, 3005;

i need the messages to read ‘crop 509 533′ ‘crop 533 556′ etc.

i’ve tried various combinations with gates and counters but i can’t seem to figure it out


April 16, 2009 | 12:17 am

Mike S wrote on Wed, 15 April 2009 17:15i have values in a coll which i’d like to act as indexes, my problem is formatting these to messages which crop a buffer.

Are you trying to do this:

– Pasted Max Patch, click to expand. –

??

mz


April 16, 2009 | 12:20 am

yes i am

zl group FTW

nice one Smile


April 16, 2009 | 3:36 pm

ok it almost works!

for some reason i cant output the last two values from the coll, here’s my max window, any ideas?

message: set 1, 2
output: 1
output: 2

etc .. .

message: set 11, 12
output: 11
output: 12
message: set 12, 13
output: 12


April 16, 2009 | 4:20 pm

What is at index 13 in your [coll], anything? Could you post this part of your patch so we can get a clearer idea of what is going on.

lh


April 16, 2009 | 6:09 pm

seems it was a triggering problem

thanks again for the help


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