compileorc

compileorc — compiles a new orchestra from an ASCII file

Description

Compileorc will 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.

Syntax

compileorc Sfilename

Initialization

Sin -- a string containing the name of the file containing the orchestra.

Examples

Here is an example of the compileorc opcode. It uses the file compileorc.csd.

Example 123. Example of the compileorc opcode.

See the sections Real-time Audio and Command Line Flags for more information on using command line flags.

<CsoundSynthesizer>
<CsOptions>
-o dac -d
</CsOptions>
<CsInstruments>

instr 1

i1 compileorc "my.orc"
i2 readscore "i 1 0 1 10000 440"

turnoff
endin

</CsInstruments>
<CsScore>
i1 0 1
</CsScore>
</CsoundSynthesizer>


See also

event, event_i, schedule, schedwhen, schedkwhen, schedkwhennamed

Credits

Author: Victor Lazzarini, 2013