| Yes, the string orc and sco are good but they should be const char *.
I would prefer not exposing structures in the API. Something like int
csoundSetParam(CSOUND *, const char *param, const char *value); and
const char *csoundGetParam(const char *param); is what I would do.
Maybe another variant for numeric parameters.
Regards,
Mike
On Tue, May 8, 2012 at 8:30 AM, Tito Latini wrote:
>> Is there a chance in this to set the orc as a string, and also to set
>> the sco as a string? ...
>
> Yes, we have `csoundCompileOrc' and `csoundReadScore' in cs6
>
> PUBLIC int csoundCompileOrc(CSOUND *csound, char *str);
> PUBLIC int csoundReadScore(CSOUND *csound, char *str);
>
> and also
>
> PUBLIC TREE *csoundParseOrc(CSOUND *csound, char *str);
> PUBLIC int csoundCompileTree(CSOUND *csound, TREE *root);
>
>> What is the reasoning to pass OPARMS to csoundCreate, rather than have
>> a separate setter for parameters? Or a whole suite of setters/getters
>> one for each parameter? Or a dictionary of parameters and values?
>
> I see the OPARMS struct like `Pa_StreamParameters' for `Pa_OpenStream'
> in PortAudio or `SF_INFO' in sndlib. However, I am not preference,
> setter/getter or suit is good for me.
>
> tito
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |