<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1250">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0">
<TITLE>Bulk handling of multiple instances</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Dear chuck-community,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">My name is kar,I am a freshly converted Chukee from Vienna, Austria, Europe. Let me first thank and praise the authors of this language, the community (I went thru the WIKI, the forum and the Archives of this list), and the relaxed as well as funny and intelligent integration of wisdom in the comments and the code….</FONT></P>

<P><FONT SIZE=2 FACE="Arial">My first question is: I want to create MANY instances of a UGEN, e.g. a Blit, and route all those (lets say 20) thru their own pan2. each should be instaneated, modulated and mixed independently to the total mix. So I tried many ways to automatically create 20 Blits via Arrays, or to access in a loop the frequency of all the Blits, but so far without success. I do not want to write endless lines of code, where I manipulate each instances separately, but I thought I can write a function with an increment to do this in a loop over all the instances.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">I would need something like a conceniation of strings, to have the &quot;body&quot; of a string the same, and add a variable to it to create the effective name of an instance or access the member of an instance:</FONT></P>

<P><FONT SIZE=2 FACE="Arial">//gain g=&gt;dac;</FONT>

<BR><FONT SIZE=2 FACE="Arial">//for (0=&gt;int i; i&lt;=20; i++) {Blit &quot;b+i&quot; =&gt; g;}</FONT>

<BR><FONT SIZE=2 FACE="Arial">Where i would be a running number, or a string from an array. But it seems there are no mechanisms for stitching together names…</FONT></P>

<P><FONT SIZE=2 FACE="Arial">I tried many variants of notation to combine the letter b with a number out of a variable to create a valid name...</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I also tried the following variant via an array of strings with no success:</FONT>

<BR><FONT SIZE=2 FACE="Arial">//gain g=&gt;dac;</FONT>

<BR><FONT SIZE=2 FACE="Arial">//[&quot;b1&quot;,&quot;b2&quot;,&quot;b3&quot;,&quot;b4&quot;,&quot;b5&quot;,&quot;b6&quot;, &quot;b7&quot;,&quot;b8&quot;, &quot;b9&quot;, &quot;b10&quot;] @=&gt; string arr[];</FONT>

<BR><FONT SIZE=2 FACE="Arial">//for (0=&gt;int j; j&lt;10; j++) {Blit arr[j] =&gt;g;}</FONT>

<BR><FONT SIZE=2 FACE="Arial">//for (0=&gt;int j; j&lt;10; j++) {0.0001=&gt;arr[j].freq;}</FONT>

<BR><FONT SIZE=2 FACE="Arial">//for (0=&gt;int j; j&lt;10; j++) {1=&gt;arr[j].harmonics;}</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Is there a way to do this? Thank you very much for your time,</FONT>

<BR><FONT SIZE=2 FACE="Arial">Karl.</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">--<BR>
No virus found in this outgoing message.<BR>
Checked by AVG Free Edition.<BR>
Version: 7.5.432 / Virus Database: 268.16.10/624 - Release Date: 12.01.2007 14:04<BR>
</FONT>&nbsp;
</P>

</BODY>
</HTML>