<div dir="ltr"><div><div><div><div>Hi, <br></div>I have an array of strings (p1) that contains the same names of  SndBuff  instances (kk sn), I would like to pass the strings of the array to trigger samples and I don&#39;t know how to do it.<br>
<br></div>Here is some test code:<br><br>SndBuf kk =&gt; dac;<br>SndBuf sn =&gt; dac;<br><br>me.dir() + &quot;/audio/kick_01.wav&quot; =&gt; kk.read;<br>me.dir() + &quot;/audio/snare_01.wav&quot; =&gt; sn.read;<br><br>kk.samples() =&gt; kk.pos;<br>
sn.samples() =&gt; sn.pos;<br><br>while( true )<br>{<br>    [&quot;kk&quot;, &quot;sn&quot;] @=&gt; string p1[];<br><br>    for( 0 =&gt; int i; i &lt; p1.cap(); i++)<br>    {<br>        0 =&gt; p1[i].pos; // not working <br>
        0.25::second =&gt; now;<br>    }<br>}<br><br></div>Thanks, <br><br></div>Federico López<br><br></div>