create
Creates a new instrument definition, instrument instance, or opcode object.
Syntax
Initialization
code -- String containing Csound language code for an instrument.
instr -- compiled instrument definition.
opc -- opcode definition
overload -- (optional, defaults to 0) opcode overload (version) (see opcodeinfo)
len -- opcode object array length.
The first version takes Csound code on a string, compiles it, and returns an instrument definition. The second takes an instrument definition and instantiates it, returning the instrument instance. The third creates an opcode object from one of the predefined opcode overloads. The final version creates an array of opcode objects of the same OpcodeDef type and overload.
Examples
Here is an example of the create opcode. It uses the file create.csd.
Credits
Author: Victor Lazzarini
Maynooth University
Ireland
Csound 7, 2024