| I would have thought that variables in instr or opcode scope would not be accessible, but variables at global orchestra scope would be. Surely Csound must have a table of them somewhere we could scan.
However, if that is not possible, it is sufficient if we do as you suggest and have special Csound opcodes for accessing externally created variables. I would suggest
extset sname, xvalue
xvalue extget sname
Under this would be polymorphic opcodes for i, k, and a rate. It would be up to the API client to know how big an array of ksmps MYFLT is for getting or setting a rate variables.
Do you have another suggestion?
-----Original Message-----
From: Istvan Varga
Sent: Mar 25, 2005 11:10 AM
To: csound-devel@lists.sourceforge.net
Subject: Re: [Cs-dev] API, was Broken again
Michael Gogins wrote:
> I mean global variables that are declared in the Csound orchestra.
Like gaVariable, gkVariable, or giVariable, dynamically at performance time ?
I do not think that is possible, definitely not with the current parser.
However, if you are talking about named "variables" that can be created
or accessed with special Csound opcodes (as well as through the API), that
is very possible (even though not implemented yet), and I can surely
implement it. What opcode names and syntax would you like ?
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |