Csound Csound-dev Csound-tekno Search About

[Csnd] ctcsound adding instruments

Date2019-03-09 20:58
FromRichard
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


Date2019-03-10 08:35
FromFrancois PINOT
SubjectRe: [Csnd] ctcsound adding instruments

Le sam. 9 mars 2019 à 21:58, Richard <zappfinger@gmail.com> a écrit :

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

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
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

Date2019-03-10 08:35
FromRory Walsh
SubjectRe: [Csnd] ctcsound adding instruments
compileOrc()?

On Sat 9 Mar 2019, 20:58 Richard, <zappfinger@gmail.com> wrote:

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

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
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

Date2019-03-10 08:45
FromRichard
SubjectRe: [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:
compileOrc()?

On Sat 9 Mar 2019, 20:58 Richard, <zappfinger@gmail.com> wrote:

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

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
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

Date2019-03-10 10:06
FromFrancois PINOT
SubjectRe: [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 :

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:
compileOrc()?

On Sat 9 Mar 2019, 20:58 Richard, <zappfinger@gmail.com> wrote:

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

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
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
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
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