Improved warning messages when getting or setting a control that
hasn't been definedmain
parent
4849ff7a68
commit
61130aa239
|
@ -39,18 +39,17 @@ TouchOSC {
|
|||
}
|
||||
|
||||
v { | url |
|
||||
^if( controls.at(url).isNil.not, {
|
||||
controls.at(url).value
|
||||
},
|
||||
nil
|
||||
^if( controls.at(url).isNil.not,
|
||||
{ controls.at(url).value },
|
||||
{ ("v: No control with url" + url).postln }
|
||||
);
|
||||
}
|
||||
|
||||
v_ { | url, v |
|
||||
^if( controls.at(url).isNil.not, {
|
||||
controls.at(url).value_(v)
|
||||
},
|
||||
nil);
|
||||
^if( controls.at(url).isNil.not,
|
||||
{ controls.at(url).value_(v) },
|
||||
{ ("v_: No control with url" + url).postln }
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue