Hi, l want to record the statuses of several toggles into an array. Don't know how. Any ideas, you guys?
regards
How to record different toggle's statuses into array?
Hi, l want to record the statuses of several toggles into an array. Don't know how. Any ideas, you guys?
regards
Looks good on first sight... Is there a way to change the array to record in, using a switch?
Sorry about asking again, but what if l have 128 toggles? To patch them all like this would possibly take days. Is there a more simple way?
I am afraid that if you plan to use toggles you must do something similar to what I did above, as I can't think of a way of automatically setting an index for each one of them and therefore saving you the trouble. But saying it would take days is an exaggeration, a bit of copy and paste and you can do that in some minutes
But here is another solution using [matrixctrl]:
I can't use anything else but toggles, because they already are part of other important things within the patch. Is it possible to translate the send symbols of the toggles into matrixcontrol sequences?
Sure it is, but then you will do something very similar to what I already proposed, because you will have to deal with the toggles individually, so I see no point in using [matrixctrl] if you must use toggles. But here is how it would work:
Well, it replaces the pack object and half the connections from the toggles to it are not necessary anymore.
Ok. I'll try it out.
Thanks a lot!
I still think that using [matrixctrl] just to avoid making connections is a hell of a hack, but it's of course up to you.
Maybe you're right, but if I patch it like you would prefer it, I would need [pack] to be much longer. I can't easily connect all 128 Toggles to one [pack]. Is there a way to expand an object anyhow? And with [matrixctrl] I can't figure out, where you got it from. Is it part of pd extd?
Hi elden,
Sorry, it's my mistake: while the matrix handling is done by iematrix, which comes with pd-extended, the GUI object I am using is part of an external named jmmmp. Here is the link: https://puredata.info/downloads/jmmmp
(one more correction: actually jmmmp does come with pd-extended, but an older version of it which does not contain the object in question)
I can't easily connect all 128 Toggles to one [pack].
Maybe you need to create smaller [pack]'s and then use [list append] to join them. This is also not very elegant, but may be handy.
Cheers,
Gilberto
Oops! Looks like something went wrong!