[Csnd] Error or end of score when using performanceThread
Date | 2017-09-05 11:05 |
From | Eduardo Moguillansky |
Subject | [Csnd] Error or end of score when using performanceThread |
I am testing ctcsound with python 3.6. When using PerformanceThread I keep getting "Error or end of score" each time a new "i" event is sent. Here is a minimal example. Related to this: how do I suppress ALL output from csound? Thanks! Eduardo Moguillansky csd = """ |
Date | 2017-09-05 11:36 |
From | Tarmo Johannes |
Subject | Re: [Csnd] Error or end of score when using performanceThread |
Jusr a guess - compileCsdText is relatively new API function, If I am correct, it goes to realtime mode when there is no score and non-realtime, ie just plays the score, otherwise. Can be, that even if ther is only f0 statement, it still goes to non-rt mode and can be that then it will not take live score events. Developers can comment, I am sure. Tarmo 05.09.2017 13:05 kirjutas kuupäeval "Eduardo Moguillansky" <eduardo.moguillansky@gmail.com>: I am testing ctcsound with python 3.6. When using PerformanceThread I keep getting "Error or end of score" each time a new "i" event is sent. Here is a minimal example. Related to this: how do I suppress ALL output from csound? |
Date | 2017-09-07 09:33 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Error or end of score when using performanceThread |
I had a look at this and it is something new in csdPerfThread.cpp that I don’t know how it started happening. It’s a bug. I don’t think it is to do with csoundCompileCsdText(). ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 5 Sep 2017, at 11:05, Eduardo Moguillansky |
Date | 2017-09-07 09:52 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Error or end of score when using performanceThread |
Ok, this seemed simple to fix. It looked like some tracing left over from development. I’ve commented it out. ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 5 Sep 2017, at 11:05, Eduardo Moguillansky |
Date | 2017-09-07 13:19 |
From | Peter Burgess |
Subject | Re: [Csnd] Error or end of score when using performanceThread |
Could this be anything to do with my issue using csPerfThread that I was posting about? Does it effect me mom real-time use aswell? I converted these perfectly working fucntions: void newCsd() { mp_csound->Reset(); mp_csound->CompileCsdText(csd. } void performCsd() { mp_csound->Start(); mp_csound->Perform(); mp_csound->RewindScore(); } Into these (and various similar versions): void newCsd() { if (mp_csoundThread) { mp_csoundThread->Stop(); mp_csoundThread->Join(); } mp_csound->Reset(); mp_csound->CompileCsdText(csd. mp_csoundThread = new CsoundPerformanceThread(mp_ } void performCsd() { if (mp_csoundThread->GetStatus() != 0) mp_csound->RewindScore(); mp_csoundThread->Play(); } And now it doesn't play anything.
|
Date | 2017-09-07 13:24 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Error or end of score when using performanceThread |
It was just a tracing printout, I don’t think it would affect performance. It was still playing, but with the funny messages. Eduardo’s code is running as expected, without the messages now. ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 7 Sep 2017, at 13:19, Peter Burgess |
Date | 2017-09-07 13:34 |
From | Francois PINOT |
Subject | Re: [Csnd] Error or end of score when using performanceThread |
The csPerfThread.Play() method won't "play" any score event: it just activates the csPerfThread Perform loop. To hear something you need to send some RT score event or to perform your csd (mp_csound->Perform for example). François2017-09-07 14:19 GMT+02:00 Peter Burgess <pete.soundtechnician@gmail.com>:
|
Date | 2017-09-07 15:47 |
From | Peter Burgess |
Subject | Re: [Csnd] Error or end of score when using performanceThread |
Aha, that's probably the issue. The csd has a score inckuded.
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
So csPerfThread->play() is equivalent to cSound-start()... I'll change that when I get home.
|
Date | 2017-09-07 19:13 |
From | Michael Gogins |
Subject | Re: [Csnd] Error or end of score when using performanceThread |
It is not equivalent to csoundStart. It sets a running Csound performance thread to the non-paused state. csoundStart is implicitly called by csoundCompile. Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Thu, Sep 7, 2017 at 10:47 AM, Peter Burgess |
Date | 2017-09-07 19:18 |
From | Michael Gogins |
Subject | Re: [Csnd] Error or end of score when using performanceThread |
Your example works fine for me... Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Tue, Sep 5, 2017 at 6:05 AM, Eduardo Moguillansky |
Date | 2017-09-07 19:36 |
From | Peter Burgess |
Subject | Re: [Csnd] Error or end of score when using performanceThread |
I only get sound with my non performance thread example... The perfthread version complains that I haven't called csound->start(). If I add a call to start before csPerfThread->GetStatus(), then it just tells me that instr 1 has a new allocation and nothing beyond that On 7 Sep 2017 7:18 p.m., "Michael Gogins" <michael.gogins@gmail.com> wrote: Your example works fine for me... |
Date | 2017-09-07 19:45 |
From | Michael Gogins |
Subject | Re: [Csnd] Error or end of score when using performanceThread |
Can you provide a self-contained C++ or Python version of your example? I was talking about Eduardo's example working for me. Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Thu, Sep 7, 2017 at 2:36 PM, Peter Burgess |
Date | 2017-09-07 19:58 |
From | Peter Burgess |
Subject | Re: [Csnd] Error or end of score when using performanceThread |
Ah sorry, on two counts... The second being that this was my bad. I added the call to csound->start just now, but forgot that I hadn't changed the output setting in pulse volume control to jackd... so no sound was happening full stop, haha. Sorry about that, all is working fine now. Cheers guys! On 7 Sep 2017 7:46 p.m., "Michael Gogins" <michael.gogins@gmail.com> wrote: Can you provide a self-contained C++ or Python version of your |