Update of /cvsroot/pure-data/supercollider/example In directory sc8-pr-cvs1:/tmp/cvs-serv2028
Modified Files: supertest.py Log Message: Fit new syntax
Index: supertest.py =================================================================== RCS file: /cvsroot/pure-data/supercollider/example/supertest.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** supertest.py 20 Jan 2004 16:53:21 -0000 1.1 --- supertest.py 22 Jan 2004 09:00:37 -0000 1.2 *************** *** 3,7 ****
import pyext,os,traceback ! from supercollider import *
--- 3,9 ----
import pyext,os,traceback ! import supercollider ! ! sc=supercollider
*************** *** 12,17 **** def start_1(self,arg): try: ! self.buffer=BufferRead(self.server,arg) ! self.bsynth=Synth(self.server,"fileplayer",["bufnum",self.buffer.id]) except: traceback.print_exc() --- 14,19 ---- def start_1(self,arg): try: ! self.buffer=sc.BufferRead(arg) ! self.bsynth=sc.Synth("fileplayer",["bufnum",self.buffer.id]) except: traceback.print_exc() *************** *** 37,43 **** def __init__(self): try: ! self.server=localServer; ! self.server.dumpOSC(3) ! self.server.evalSynth("fileplayer"); except: traceback.print_exc() --- 39,45 ---- def __init__(self): try: ! server=sc.localServer ! server.dumpOSC(3) ! server.evalSynth("fileplayer"); except: traceback.print_exc()