On Tuesday 16 May 2006 14:49, Rory Walsh wrote: > I think you can retrieve a list using a csound API function. I had to > get a list like this or Lettuce so I quickly wrote a little application > that parsed the help file for opcodes and parameters. If one of the > developers knows of the API function that can retrieve all opcodes I can > try it. Otherwise I think you can look through entry1.h in the csound > src, afaik that lists all opcodes. Of course you will have to classify > them into their particular groups yourself. If you want something like the information printed by the "-z1" command line option, then the functions below are probably what you are looking for. Currrently, csoundNewOpcodeList() should be called after csoundCompile(); this means that you may need to compile a temporary "dummy" orchestra first; it should be enough if it only contains "instr 1\nendin\n", a score is not needed, and sound output can also be disabled with the "-n" flag. The limitation of having to compile something first before creating an opcode list may be removed in a future version, however. By the way, entry1.h does not contain the opcode list, and even in entry1.c you will only find the opcodes built into the Csound API library, but not the plugins. typedef struct { char *opname; char *outypes; char *intypes; } opcodeListEntry; /** * Gets an alphabetically sorted list of all opcodes. * Should be called after externals are loaded by csoundCompile(). * Returns the number of opcodes, or a negative error code on failure. * Make sure to call csoundDisposeOpcodeList() when done with the list. */ PUBLIC int csoundNewOpcodeList(CSOUND *, opcodeListEntry **opcodelist); /** * Releases an opcode list. */ PUBLIC void csoundDisposeOpcodeList(CSOUND *, opcodeListEntry *opcodelist);