Send to control

main
Mike Lynch 2023-09-30 15:01:51 +10:00
parent 464412494a
commit 2df49cdac8
2 changed files with 13 additions and 0 deletions

View File

@ -59,5 +59,13 @@ TouchOSC {
);
}
s_ { | url, v |
^if( controls.at(url).isNil.not,
{ controls.at(url).send_(v) },
{ ("s_: No control with url" + url).postln }
);
}
}

View File

@ -29,6 +29,11 @@ TouchOSCControl {
send {
touchOSC.send(url, value);
}
send_ { |newval|
value = newval;
this.send();
}
}
TouchOSCControlScale : TouchOSCControl {