Hi all,
http://www.csounds.com/manual/html/instr.html states that:
"""
If an instrument is defined with a name, you simply call it directly
like an opcode:
asig MyOscil iamp, ipitch, iftable
"""
But I get errors when calling a named instrument like that. OTOH, the
same invocation works fine when done through subinstr.
For example:
a1,a2 subinstr "Insx", ivel, ipch, .05, .7, 0.3, 6, 5, 3, 2, .5
works as expected, but
a1,a2 subinstr "Insx", ivel, ipch, .05, .7, 0.3, 6, 5, 3, 2, .5
throws:
error: illegal character ., line 57:
a1,a2 Insx ivel, ipch, .05, .7, 0.3, 6, 5, 3, 2, .5
^
error: illegal character ., line 57:
a1,a2 Insx ivel, ipch, .05, .7, 0.3, 6, 5, 3, 2, .5
^
error: illegal character ., line 57:
a1,a2 Insx ivel, ipch, .05, .7, 0.3, 6, 5, 3, 2, .5
^
error: illegal character ., line 57:
a1,a2 Insx ivel, ipch, .05, .7, 0.3, 6, 5, 3, 2, .5
^
error: no legal opcode, line 57:
a1,a2 Insx ivel, ipch, .05, .7, 0.3, 6, 5, 3, 2, .5
error: input arg 'a2' used before defined, line 58:
outs a1, a2
error: input arg 'a1' used before defined, line 58:
outs a1, a2
Am I missing something here?
Regards
-Carlos