<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't know how to do it.<br>
<br></div>Here is some test code:<br><br>SndBuf kk => dac;<br>SndBuf sn => dac;<br><br>me.dir() + "/audio/kick_01.wav" => kk.read;<br>me.dir() + "/audio/snare_01.wav" => sn.read;<br><br>kk.samples() => kk.pos;<br>
sn.samples() => sn.pos;<br><br>while( true )<br>{<br> ["kk", "sn"] @=> string p1[];<br><br> for( 0 => int i; i < p1.cap(); i++)<br> {<br> 0 => p1[i].pos; // not working <br>
0.25::second => now;<br> }<br>}<br><br></div>Thanks, <br><br></div>Federico López<br><br></div>