Sunday, March 12, 2006
csound programming link
The annoying part about it is the tcl and tp or whatever. Why the insistance on an example that is complicated to install and is beyond me. Should be able to do something in c or c++ to get commands available.
http://www.csounds.com/journal/2006winter/tclCsound.html
Here's the c code The best example so far I won't post tcl/tp stuff
#include
int main(int argc, char **argv) {
int result;
CSOUND *cs; /* the csound instance */
/* initialise the library */
csoundInitialize(&argc, &argv, 0);
/* create the csound instance */
cs = csoundCreate(NULL);
/* compile csound code */
result = csoundCompile(cs, argc, argv);
/* this is the processing loop */
if(result) while(csoundPerformKsmps(cs)==0);
/* destroy the instance */
csoundDestroy(cs);
return 0;
}
http://www.csounds.com/journal/2006winter/tclCsound.html
Here's the c code The best example so far I won't post tcl/tp stuff
#include
int main(int argc, char **argv) {
int result;
CSOUND *cs; /* the csound instance */
/* initialise the library */
csoundInitialize(&argc, &argv, 0);
/* create the csound instance */
cs = csoundCreate(NULL);
/* compile csound code */
result = csoundCompile(cs, argc, argv);
/* this is the processing loop */
if(result) while(csoundPerformKsmps(cs)==0);
/* destroy the instance */
csoundDestroy(cs);
return 0;
}