#!/usr/bin/env python import csnd6 class csd_tester(object): def __init__(self): print ".............................initializing csd_tester" self.csdorc = ''' sr = 44100 ksmps = 16 nchnls = 2 pyinit instr 1 print p1 pycalli "test.pythonprint" print p2 endin ''' self.csdsco = ''' i1 0 1 ''' self.cpps = csnd6.CppSound() self.cpps.setCommand('csound -m0d') self.cpps.setOrchestra(self.csdorc) self.cpps.setScore(self.csdsco) self.cpps.compile() def pythonprint(self): print ".............................pythonprint called" def csd_run(self): print ".............................Running CSD" self.perf = csnd6.CsoundPerformanceThread(self.cpps) self.perf.Play() test = csd_tester() test.cpps.exportForPerformance() test.csd_run()