Sorry, one last hidden detail. Twister
buttons automatically have an OnOffControlValue
set as their CV. So, usage looks like this:
~t = Twister(\mine);
~t.buttons[0].toggle = true; // is the button a toggle button, or is down==on and up==falsee?
~t.buttons[0].cv.signal(\on).connectToUnique {
"i'm on".postln;
};
~t.buttons[0].cv.signal(\off).connectToUnique {
"i'm off".postln;
};
~t.buttons[0].cv.signal(\value).connectToUnique {
|...args|
"ive changed: %".format(args).postln;
};