Skip to content

Commit

Permalink
added clock_ to ProxySpace.
Browse files Browse the repository at this point in the history
xset etc work now.


git-svn-id: https://supercollider.svn.sourceforge.net/svnroot/supercollider/trunk@1251 a380766d-ff14-0410-b294-a243070f3f08
  • Loading branch information
Julian Rohrhuber committed May 18, 2003
1 parent a8646f2 commit 37e50bd
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions build/SCClassLibrary/JITLib/ProxySpace/ProxySpace.sc
@@ -1,6 +1,6 @@
ProxySpace : EnvironmentRedirect { classvar <>lastEdited;//undo support
classvar <>all; //access
var <group, <server, <>clock;
var <group, <server, <clock;
var <name;

*initClass {
Expand All @@ -13,6 +13,11 @@
^this.new(server, name, clock).push
}

clock_ { arg aClock;
clock = aClock;
this.do({ arg item; item.clock = aClock });
}


//todo add group to target einit { arg srv, argName, argClock;
server = srv;
Expand Down Expand Up @@ -91,9 +96,16 @@

SharedProxySpace : ProxySpace {


einit { arg srv, argName, argClock, controlKeys, audioKeys;
super.einit(srv,argName, argClock);
*new { arg server, name, clock, controlKeys, audioKeys;
^super.new(server, name, clock).addSharedKeys(controlKeys, audioKeys)
}


*push { arg server, name, clock, controlKeys, audioKeys;
^this.new(server, name, clock, controlKeys, audioKeys).push
}

addSharedKeys { arg controlKeys, audioKeys;
//default:
//initialize single letters as shared busses: xyz are audio busses, the rest control
controlKeys = controlKeys ?? { Array.fill(25 - 3, { arg i; asSymbol(asAscii(97 + i)) }) };
Expand All @@ -103,6 +115,7 @@ SharedProxySpace : ProxySpace {
audioKeys.do({ arg key; this.makeSharedProxy(key, 'audio') });
}


makeSharedProxy { arg key, rate;
var proxy, srv;
srv = server.broadcast;
Expand Down

0 comments on commit 37e50bd

Please sign in to comment.