diff --git a/classes/TouchOSC.sc b/classes/TouchOSC.sc index db22d26..860e776 100644 --- a/classes/TouchOSC.sc +++ b/classes/TouchOSC.sc @@ -22,7 +22,8 @@ TouchOSC { controls.put(url, TouchOSCControl2d(url, scale1, scale2, apply)); } - addradio { | name, apply | + addbutton { | url, apply | + controls.put(url, TouchOSCControlButton(url, apply)); } } diff --git a/classes/TouchOSCControl.sc b/classes/TouchOSCControl.sc index 129dcea..745521d 100644 --- a/classes/TouchOSCControl.sc +++ b/classes/TouchOSCControl.sc @@ -58,6 +58,29 @@ TouchOSCControl2d { } +// For buttons and radio - a TouchOSCControl which just gets values +// and doesn't have a scale + +TouchOSCControlButton { + var