Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] API function to return opcode list (like `csound -z1`) for cseditor

Date2007-05-19 09:13
FromVictor Lazzarini
SubjectRe: [Cs-dev] API function to return opcode list (like `csound -z1`) for cseditor
There is a function (in prototyp.h) that lists all
opcodes. However, it's not part of the API, but it
might be interfaced, perhaps? list_opcodes()

In any case, you can always run 'csound -z' and then parse
the output. Opcodes are spaced by _spaces_.

Victor

>
> Hi List,
>
> How might it be possible to use the Csound API to populate
> an array with the opcode list ?
>
> Presently I'm using just this
>
> const char         *code_keywords[] = {
>             "ATSadd",
>             "ATSaddnz",
> // etc etc Csound opcodes go here
> };
>
> but the tedium of going in by hand and adding new opcodes
> each release is what I'm trying to avoid. Someone
> mentioned at one point that it might be possible to
> populate this array by using the Csound API, but I am
> unsure of how to use it for this purpose.
>
> Any help or tips would be appreciated!
>
>
> -David
>
> ----------------------------------------------------------
> --------------- This SF.net email is sponsored by DB2
> Express Download DB2 Express C - the FREE version of DB2
> express and take control of your XML. No limits. Just
> data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-05-21 00:04
From"David Akbari"
SubjectRe: [Cs-dev] API function to return opcode list (like `csound -z1`) for cseditor
AttachmentsNone