Skip to content

Commit

Permalink
proxyspace example: add a protection
Browse files Browse the repository at this point in the history
if you called it twice it would have failed.
  • Loading branch information
telephon committed May 4, 2016
1 parent 44d78ae commit 05c7772
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hacks/proxyspace-and-dirt.scd
Expand Up @@ -4,8 +4,10 @@
// because the default startup file use the default current Environment, you need a little trick to use ProxySpace directly.
// when you switch to a different file, your environment will be the "normal" one.
(
q = currentEnvironment;
p = ProxySpace(~dirt.server).linkDoc;
if(currentEnvironment.isKindOf(ProxySpace).not) {
q = currentEnvironment;
p = ProxySpace(~dirt.server).linkDoc;
};
);

~out = { BrownNoise.ar(0.2 ! 2) };
Expand Down

0 comments on commit 05c7772

Please sign in to comment.