From e33a3e5408c1f7b44914b8bea02fdd371b8c4102 Mon Sep 17 00:00:00 2001 From: "Kjetil S. Matheussen" Date: Thu, 22 Jan 2004 09:00:37 +0000 Subject: Fit new syntax svn path=/trunk/; revision=1287 --- supercollider/example/supertest.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'supercollider') 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() -- cgit v1.2.1