[Csnd] csoundSession and multiple csd's
Date | 2018-11-25 19:28 |
From | Richard |
Subject | [Csnd] csoundSession and multiple csd's |
I'm not sure how cs.resetSession(csdfile) works. The description says: "Reset the current session, eventually loading a new csd file" Does that replace the existing csd file or add the new csd file to the thread? I am trying to convert Steven's OSCsound example to make use of ctcsound, not csnd6. BTW, in order to use resetSession without errors I had to use this: cs = CsoundSession("/Users/richard/PycharmProjects/OscCtcSound/csds/Mono_Synth.csd") time.sleep(10) cs.stopPerformance() cs.reset() cs.resetSession("/Users/richard/PycharmProjects/OscCtcSound/csds/vco2test.csd") But as I said I am not sure at this point of both csd's are loaded... Richard 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 |
Date | 2018-11-25 19:43 |
From | Francois PINOT |
Subject | Re: [Csnd] csoundSession and multiple csd's |
cs.resetSession resets the current session, eventually loading a new csd file. This means that if no csd filename is given as parameter or if the same csd filename as the actual one is given, the system just resets the csd. If a new csd filename is given as parameter, then the system is reset with this new csd which replaces the old one. François Le dim. 25 nov. 2018 à 20:28, Richard <zappfinger@gmail.com> a écrit : I'm not sure how cs.resetSession(csdfile) works. The description says: |
Date | 2018-11-25 20:49 |
From | Richard |
Subject | Re: [Csnd] csoundSession and multiple csd's |
Yes, but what if I need to add new instruments? In ctcsound I found the following code that I think I need: def compileCsd(self, csd_filename): But this is not called in csoundSession()...
Richard On 25/11/2018 20:43, Francois PINOT
wrote:
|
Date | 2018-11-26 11:08 |
From | Francois PINOT |
Subject | Re: [Csnd] csoundSession and multiple csd's |
CsoundSession is a subclass of ctcsound.Csound and so it has de facto all the methods of ctcsound, particularly compileCsd, compileOrc, and compileOrcAsync which can be used to add instr on the fly. François Le dim. 25 nov. 2018 à 21:49, Richard <zappfinger@gmail.com> a écrit :
|
Date | 2018-11-26 12:19 |
From | Victor Lazzarini |
Subject | Re: [Csnd] csoundSession and multiple csd's |
I hadn’t come across it before, that’s a very interesting one. ======================== 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 26 Nov 2018, at 11:08, Francois PINOT |
Date | 2018-11-26 19:45 |
From | Richard |
Subject | Re: [Csnd] csoundSession and multiple csd's |
Of course. BTW, there should be more info on how to use this,
maybe in a Csound Journal article? Richard On 26/11/2018 12:08, Francois PINOT
wrote:
|