Csound Csound-dev Csound-tekno Search About

how to add instruments in real time?

Date2017-03-07 00:40
FromForrest Curo
Subjecthow to add instruments in real time?
The wikipedia article on csound [along with their usual complaint about the article containing first-hand information from people who know about the subject, which seems to show up on all their useful audio articles] has the following:

[abt csound 6]:
"The orchestra can be re-compiled at any time, or individual instruments can be compiled at any time, during a running performance. This enables true "live coding" in Csound performances."

Where can I find a piece on how to do this from (say) C [using the api functions]?
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

Date2017-03-07 01:16
FromNikhil Singh
SubjectRe: how to add instruments in real time?
csoundCompileOrc() I think is the function that allows this. I could be wrong though!

On Mon, Mar 6, 2017 at 7:40 PM, Forrest Curo <treegestalt@gmail.com> wrote:
The wikipedia article on csound [along with their usual complaint about the article containing first-hand information from people who know about the subject, which seems to show up on all their useful audio articles] has the following:

[abt csound 6]:
"The orchestra can be re-compiled at any time, or individual instruments can be compiled at any time, during a running performance. This enables true "live coding" in Csound performances."

Where can I find a piece on how to do this from (say) C [using the api functions]?
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

Date2017-03-07 02:57
FromForrest Curo
SubjectRe: how to add instruments in real time?
Yes, thanks!

"...
char *orc = "instr 8 \n a1 rand 0dbfs/4 \n outs a1, a1 \n endin \n";

csoundCompileOrc(csound, orc);

sprintf(orcout, "i8 0 5 \n");
...
"

produces noise when I trigger it
and:
"...
i5.57 0 60 92 7.09
  rtevent:       T  2.582 TT  2.582 M:  20281.1  22750.4
i8 0 5
..."



On Mon, Mar 6, 2017 at 5:16 PM, Nikhil Singh <nsingh1@berklee.edu> wrote:
csoundCompileOrc() I think is the function that allows this. I could be wrong though!

On Mon, Mar 6, 2017 at 7:40 PM, Forrest Curo <treegestalt@gmail.com> wrote:
The wikipedia article on csound [along with their usual complaint about the article containing first-hand information from people who know about the subject, which seems to show up on all their useful audio articles] has the following:

[abt csound 6]:
"The orchestra can be re-compiled at any time, or individual instruments can be compiled at any time, during a running performance. This enables true "live coding" in Csound performances."

Where can I find a piece on how to do this from (say) C [using the api functions]?
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

Date2017-03-07 03:01
FromForrest Curo
SubjectRe: how to add instruments in real time?
[The "i5.57 etc" part might be confusing; it's there because the
triggering event was the noteoff I sent to instrument 5.57.]

On Mon, Mar 6, 2017 at 6:57 PM, Forrest Curo <treegestalt@gmail.com> wrote:
Yes, thanks!

"...
char *orc = "instr 8 \n a1 rand 0dbfs/4 \n outs a1, a1 \n endin \n";

csoundCompileOrc(csound, orc);

sprintf(orcout, "i8 0 5 \n");
...
"

produces noise when I trigger it
and:
"...
i5.57 0 60 92 7.09
  rtevent:       T  2.582 TT  2.582 M:  20281.1  22750.4
i8 0 5
..."



On Mon, Mar 6, 2017 at 5:16 PM, Nikhil Singh <nsingh1@berklee.edu> wrote:
csoundCompileOrc() I think is the function that allows this. I could be wrong though!

On Mon, Mar 6, 2017 at 7:40 PM, Forrest Curo <treegestalt@gmail.com> wrote:
The wikipedia article on csound [along with their usual complaint about the article containing first-hand information from people who know about the subject, which seems to show up on all their useful audio articles] has the following:

[abt csound 6]:
"The orchestra can be re-compiled at any time, or individual instruments can be compiled at any time, during a running performance. This enables true "live coding" in Csound performances."

Where can I find a piece on how to do this from (say) C [using the api functions]?
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