Forums > MaxMSP

Setting dict.strip keys attribute

November 15, 2011 | 10:35 am

Having a bit of trouble here and wondering if anyone can help..

I’m trying to use dict.strip to remove unused keys in a pattern editor patch- user can set a range of keys to work in with a number box but will leave unused ones if they lower the range.

I’m using the attrui object to set the keys to strip, but what it takes in seems to be quite unpredictable…missing out first item or duplicating items. I can’t tell if this is down to something I’m doing wrong or if it’s a bug.

Here’s the problem area:

– Pasted Max Patch, click to expand. –

November 15, 2011 | 10:52 am

Almost as soon as I hit send I realised that I should have checked to see if a message (keys "1" "2" etc.) directly into dict.strip would work. That’s solved my immediate problem.


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