move code execution onto AppClock, allows GUI to work
This commit is contained in:
parent
4be601c703
commit
04e0b261f1
|
@ -18,7 +18,7 @@
|
|||
<array>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>\b(arg|var|classvar|this|thisThread|thisMethod|thisFunction|true|false|inf|nil)\b</string>
|
||||
<string>\b(arg|var|classvar|this|thisThread|thisMethod|thisFunction|thisProcess|true|false|inf|nil)\b</string>
|
||||
<key>name</key>
|
||||
<string>keyword.control.supercollider</string>
|
||||
</dict>
|
||||
|
|
|
@ -22,8 +22,10 @@ SC3Controller {
|
|||
|
||||
if(nodes.isEmpty) {
|
||||
node = OSCresponderNode(nil, '/sc3ctrl/cmd') { |t, r, msg|
|
||||
msg[1].asString.interpretPrint;
|
||||
{ postToFront.() }.defer;
|
||||
{
|
||||
msg[1].asString.interpretPrint;
|
||||
postToFront.();
|
||||
}.defer;
|
||||
}.add;
|
||||
nodes.add(node);
|
||||
|
||||
|
@ -48,7 +50,7 @@ SC3Controller {
|
|||
nodes.add(node);
|
||||
|
||||
node = OSCresponderNode(nil, '/sc3ctrl/stop') { |t, r, msg|
|
||||
thisProcess.stop;
|
||||
thisProcess.stop; nil;
|
||||
}.add;
|
||||
nodes.add(node);
|
||||
|
||||
|
|
Loading…
Reference in New Issue