| What I was thinking of was this:
gisrate chnget "Samplerate"
sr = gisrate
where "Samplerate" is a value generated by a Lettuce widget prior to running
Csound, probably by a combobox.
If this is not possible, I can handle the issue by passing a macro value via
or the command line (e.g, sr = $SRATE). Of course, as Rory
indicates, being able to use chnget with widgets would be much nicer. (As
mentioned in an earlier email, I hope to use *massign* with a chnget widget
value in the header also.)
Art Hunkins
----- Original Message -----
From:
To:
Cc:
Sent: Tuesday, May 16, 2006 1:39 PM
Subject: Re: [Cs-dev] chnget....
> 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
> https://lists.sourceforge.net/lists/listinfo/csound-devel
-------------------------------------------------------
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 |