compilecsdInstrument Control:Compilationcompilecsdcompilecsd
compiles a new orchestra from an ASCII file
Description
Compilecsd will read a CSD file and compile one or more instruments at init time, which will be added to the running engine. In case of existing instrument numbers or names, these will be replaced, but any instance still running of the old instrument definition will still perform until it terminates. In addition, it will read the score (if it exists) contained in the CSD file and add it to the list of events to be performed by Csound. The opcode ignores any section in the CSD file that is not the orchestra or the score.
Syntaxires compilecsd SfilenameInitializationSfilename -- a string containing the name of the file containing the orchestra.
ires -- returns 0 if compilation was successful, or -1 if not.
Examples
Here is an example of the compilecsd opcode. It uses the file compilecsd.csd.
Example of the compilecsd opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoInstrument InvocationCreditsAuthor: &namevictor;, 2013