Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Csound5 CVS changes

Date2005-02-10 15:48
From"gogins@pipeline.com"
SubjectRe: [Cs-dev] Csound5 CVS changes
That's great, thanks. I was responding to your email changelog without
looking at the code.

Original Message:
-----------------
From: Istvan Varga istvan@csounds.com
Date: Thu, 10 Feb 2005 15:54:53 +0100
To: csound-devel@lists.sourceforge.net
Subject: Re: [Cs-dev] Csound5 CVS changes


gogins@pipeline.com wrote:

> Istvan, are the configuration variables specific to a single instance of
> Csound, or are they global across instances? 

Both types of use are supported by the system, however, this time
I used variables specific to a single instance. In fact, currently there
are only instance specific configuration variables in Csound5.

> For this use they MUST be specific to a single instance.

That's good news as I did exactly that.

> We should all be trying to work towards a situation where Csound can be
> instantiated multiple times within a single process, and run several
> performances in parallel.
 > [...]

I understand that, and made changes with multiple instances in mind.
It should be obvious if you look at the code (notice the presence
of 'csound' pointers):

static  const   char    *id_option_table[][3] = {
       { "::SF::id_title", "id_title",
         "Title tag in output soundfile (no spaces)" },
       { "::SF::id_copyright", "id_copyright",
         "Copyright tag in output soundfile (no spaces)" },
       { "::SF::id_software", "id_software",
         "Software tag in output soundfile (no spaces)" },
       { "::SF::id_artist", "id_artist",
         "Artist tag in output soundfile (no spaces)" },
       { "::SF::id_comment", "id_comment",
         "Comment tag in output soundfile (no spaces)" },
       { "::SF::id_date", "id_date",
         "Date tag in output soundfile (no spaces)" },
       { NULL, NULL, NULL }
   };

[...]

   /* sound file tag options */
   max_len = 201;
   i = -1;
   while (id_option_table[++i][0] != NULL) {
     csoundCreateGlobalVariable(csound, id_option_table[i][0],
                                        (size_t) max_len);
     csoundCreateConfigurationVariable(
                   csound, id_option_table[i][1],
                   csoundQueryGlobalVariable(csound, id_option_table[i][0]),
                   CSOUNDCFG_STRING, 0, NULL, &max_len,
                   id_option_table[i][2], NULL);
   }


-------------------------------------------------------
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

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .




-------------------------------------------------------
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_ide95&alloc_id396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net