[Csnd] ctcsound adding instruments
Date | 2019-03-09 20:58 |
From | Richard |
Subject | [Csnd] ctcsound adding instruments |
The ctcsound docs state: "Csound offers also the possibility to compile directly a csd file. As this can be done during a performance to replace or add new instruments and events" If I have an initial csd compiled (e.g.from string) it obviously has to have the header (and footer) like: <CsoundSynthesizer> <CsOptions> -d -o dac -m0 </CsOptions> <CsInstruments> sr = 48000 ksmps = 100 nchnls = 2 0dbfs = 1 But then, when I want to ADD a single instrument, it also has to have the header and footer section! This does not seem logical and it is confusing. I think there should be a function like: compileInstrText() Richard
|
Date | 2019-03-10 08:35 |
From | Francois PINOT |
Subject | Re: [Csnd] ctcsound adding instruments |
François Le sam. 9 mars 2019 à 21:58, Richard <zappfinger@gmail.com> a écrit :
|
Date | 2019-03-10 08:35 |
From | Rory Walsh |
Subject | Re: [Csnd] ctcsound adding instruments |
compileOrc()? On Sat 9 Mar 2019, 20:58 Richard, <zappfinger@gmail.com> wrote:
|
Date | 2019-03-10 08:45 |
From | Richard |
Subject | Re: [Csnd] ctcsound adding instruments |
Right, I overlooked that one. Here is a request: would it be possible to return from csound the currently loaded orchestra, including added instruments? Richard On 10/03/2019 09:35, Rory Walsh wrote:
|
Date | 2019-03-10 10:06 |
From | Francois PINOT |
Subject | Re: [Csnd] ctcsound adding instruments |
There is a function called csoundGetInstrumentList but actually it is not exposed through the API though there is a pointer to it in the Csound struct. It returns a linked list of INSTRTXT struct. INSTRTXT struct are filled out at orch parse time. Might be dangerous to access directly this linked list... François Le dim. 10 mars 2019 à 09:45, Richard <zappfinger@gmail.com> a écrit :
|