| There is no substantial reason why sr etc should be a constant; it
could be an expression that yields a constant like the expressions in
the C preprocessor. Not sure that the need has been established for
the effort to implement this though.
==John ffitch
>>>>> "Istvan" == Istvan Varga writes:
Istvan> Setting the sample rate, or the other reserved symbols that are
Istvan> normally set in the orchestra header (kr, ksmps, nchnls, and 0dbfs),
Istvan> to a non-constant value is trickier because those settings are already
Istvan> assumed to be known by the time any orchestra code is executed (for
Istvan> example, memory for instruments and the global variables is allocated
Istvan> based on the value of ksmps because it determines the amount of space
Istvan> required by an a-rate variable). Therefore, sr etc. are parsed and set
Istvan> in a special way (not by executing the = opcode as usual) before
Istvan> running the orchestra header, and are required to be constants.
-------------------------------------------------------
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 |