| The opcode that sets the local ksmps for UDOs is setksmps. I am pretty sure
that it modifies the global ksmps temporarily while an UDO is running.
Anthony
PS. The manual includes the following warnings:
Note
The local ksmps is implemented by splitting up a control period into smaller
sub-kperiods and temporarily modifying internal Csound global variables.
This also requires converting the rate of k-rate input and output arguments
(input variables receive the same value in all sub-kperiods, while outputs
are written only in the last one).
Warning about local ksmps
When the local ksmps is not the same as the orchestra level ksmps value (as
specified in the orchestra header). Global a-rate operations must not be
used in the user-defined opcode block.
These include:
- any access to ³ga² variables
- a-rate zak opcodes (zar, zaw, etc.)
- tablera and tablewa (these two opcodes may in fact work, but caution
is needed)
- The in and out opcode family (these read from, and write to global
a-rate buffers)
In general, the local ksmps should be used with care as it is an
experimental feature. Though it works correctly in most cases.
jpff wrote on 2/4/07 6:48 AM:
> I believe that Istvan wrote code do UDOs could run at a different
> krate. Does anyone know it this involves changing the csound->ksmps
> value of a different way? It matters! If ->ksmps is changed then there
> are a number of (rare) bugs all over the place. Thought i would ask
> before attempting top read the code.
> ==John ffitch
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |