diff options
author | Kjetil S. Matheussen <ksvalast@users.sourceforge.net> | 2004-01-22 09:00:37 +0000 |
---|---|---|
committer | Kjetil S. Matheussen <ksvalast@users.sourceforge.net> | 2004-01-22 09:00:37 +0000 |
commit | e33a3e5408c1f7b44914b8bea02fdd371b8c4102 (patch) | |
tree | 0060648f12eb4164983f7affec595bfa9c6057b0 /supercollider | |
parent | 7b590bf12c40f15e7c006be3183c68a11ef2b031 (diff) |
Fit new syntax
svn path=/trunk/; revision=1287
Diffstat (limited to 'supercollider')
-rw-r--r-- | supercollider/example/supertest.py | 14 |
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() |