Hiya, I'm just trying to create a simple abstraction where 2 toggles are linked so that only 1 can be selected at any one time (e.g. if one is selected, the other cannot be switched on) Any help would be appreciated!
-
help with toggles
-
Are the 2 toggles in the same abstraction (in each and every copy)?
Do you have to deselect one toggle, otherwise the other is completely blocked and cannot be toggled?
You could do it like this.... only_me.pd
by clicking the bangs, and not the toggles.... but with the same effect.
-
@Jamestocher This thread might be of interest to you. http://forum.pdpatchrepo.info/topic/9177/conceptual-problem-creating-a-master-toggle
-
@Jamestocher You could also just do this if it's only two toggles:
-
That did it, cheers!
-
If you're looking for it to be a switch/selector in the GUI, you can also use the [vradio] or [hradio] objects for this, as only one option can be selected at a time. I also prefer it over toggle for this purpose, as clicking can only select, not deselect. I've included a little patch to demonstrate.