aboutsummaryrefslogtreecommitdiff
path: root/supercollider
diff options
context:
space:
mode:
Diffstat (limited to 'supercollider')
-rw-r--r--supercollider/example/supertest.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/supercollider/example/supertest.py b/supercollider/example/supertest.py
index d48b7164..5c1a3172 100644
--- a/supercollider/example/supertest.py
+++ b/supercollider/example/supertest.py
@@ -2,7 +2,9 @@
import pyext,os,traceback
-from supercollider import *
+import supercollider
+
+sc=supercollider
class supertest(pyext._class):
@@ -11,8 +13,8 @@ class supertest(pyext._class):
def start_1(self,arg):
try:
- self.buffer=BufferRead(self.server,arg)
- self.bsynth=Synth(self.server,"fileplayer",["bufnum",self.buffer.id])
+ self.buffer=sc.BufferRead(arg)
+ self.bsynth=sc.Synth("fileplayer",["bufnum",self.buffer.id])
except:
traceback.print_exc()
@@ -36,9 +38,9 @@ class supertest(pyext._class):
def __init__(self):
try:
- self.server=localServer;
- self.server.dumpOSC(3)
- self.server.evalSynth("fileplayer");
+ server=sc.localServer
+ server.dumpOSC(3)
+ server.evalSynth("fileplayer");
except:
traceback.print_exc()