diff options
Diffstat (limited to 'csound')
-rw-r--r-- | csound/csoundserver.py | 10 | ||||
-rw-r--r-- | csound/univorc.csd | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/csound/csoundserver.py b/csound/csoundserver.py index 6e7c815..c8c799f 100644 --- a/csound/csoundserver.py +++ b/csound/csoundserver.py @@ -13,16 +13,18 @@ class CsoundServer(Thread): Thread.__init__(self) self.csound = csnd.Csound() - def start(self): + def start(self): self.perf = csnd.CsoundPerformanceThread(self.csound) uniorcpath = os.path.join( os.path.dirname(__file__), 'univorc.csd') if not os.path.exists(uniorcpath): _logger.error('univorc not found %s'%uniorcpath) else: - self.csound.Compile(uniorcpath) + if self.csound.Compile(uniorcpath) == -1: + _logger.debug('error compiling csound orchestra %s'%uniorcpath) + return 1 self.perf.Play() - _logger.debug('start csound performance %s'%uniorcpath) - + return 0 + def pause(self): self.perf.Stop() self.perf.Join() diff --git a/csound/univorc.csd b/csound/univorc.csd index e4264e9..3851ca3 100644 --- a/csound/univorc.csd +++ b/csound/univorc.csd @@ -1,6 +1,6 @@ <CsoundSynthesizer> <CsOptions> --+rtaudio=alsa -odac -m0 -d -b1024 -B4096 +-+rtaudio=alsa -odac -m0 -d -b2048 -B4096 </CsOptions> <CsInstruments> sr=22050 |