Forums > MaxMSP

Pattr Storing

Apr 13 2006 | 1:40 pm

I have 8 toggles set up to choose various patterns linked to my pattrstorage object. I am trying to set it up so that whenever you press a new toggle, say for pattern 2, that it would store the previous pattern you were on. This is easy enough the problem is I have a little routine setup so that only 1 toggle is ever on. So if one toggle is one the others receive 0’s.

The way I would of implemented it would of been to use sel 1 then let it bang from right outlet when toggle was changed, 0. The way I have it set up stores it on all patterns as everything but the selected toggle receives a 0.

Any ways round this or another method to only ever have 1 toggle on?

Apr 13 2006 | 5:26 pm

Use the radio box object instead of toggles. Or, use matrixctl with
one row, and have it only allow one cell per row.

Peter McCulloch

Apr 13 2006 | 5:37 pm

The reason I am using toggle is because they are pictctrls, but I will try loading the same image into a matrix as a cell and see how that goes.

Thanks for the suggestions was racking my brain about it.

Apr 17 2006 | 9:43 pm

I just played aroud with thie matrixctrl and img’s! works nice

only problem is creating a nice presets thingie, anyone a nice sollution for this?

(now trying pattr)

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

Forums > MaxMSP