<div>
                    the documentation isn't the greatest when it comes to parsing data from files, but it is possible in ChucK.
                </div><div><br></div><div>There are some examples on performing file i/o that you can read here: <a href="http://chuck.cs.princeton.edu/doc/examples/io/">http://chuck.cs.princeton.edu/doc/examples/io/</a></div><div><br></div><div>There are some examples on performing string manipulations that you can read here:  <a href="http://chuck.cs.princeton.edu/doc/examples/string/">http://chuck.cs.princeton.edu/doc/examples/string/</a></div>
                <div><div><br></div><div>The string examples aren't listed on the main examples page, but they can be found in the examples directory that comes with the language.  It's definitely worth your time to look through those examples and listen to them.</div><div><br></div><div>Do you have some sample files that you could post somewhere to share with us?  It would be helpful to have a dozen or so data points just so we know what the format is.</div><div><br></div><div>How big are your data sets?  I'm curious to know if they are small enough to fit in memory or if a streaming approach is required.</div><div><br></div><div>If I was in your position, I would probably use some other programming language to handle the data itself, format it into OSC messages, and send it to ChucK through OSC, especially if the data sets are large and you can't fit them in memory.  Of course, most other programming languages don't give you the time guarantees that ChucK gives you, so I would probably have ChucK send an OSC message to request a data point, with some other process sending an OSC message back in response.  In that way, you could iterate over a large dataset without ever holding it in memory.</div><div><br></div><div>As an aside, do you have any recommendations on quadraphonic headphones?</div><div><br></div><div>Oh and, if you're just starting out with ChucK, make sure you have test headphones to test new code, and don't wear them when learning new features.  I blew out the cones in a pair of headphones by accidentally setting the pole position of a OnePole ugen to 0, so… be careful ;)</div><div><br></div><div>-jordan</div><div><br></div></div>
                 
                <p style="color: #A0A0A8;">On Saturday, June 23, 2012 at 3:26 PM, Hayden Dahmm wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div>


<div dir="ltr">
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font size="3" face="Calibri">Hi everyone,</font></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><!--?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /--><o:p><font size="3" face="Calibri"> </font></o:p></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font size="3" face="Calibri">My name is Hayden, and I’m a blind student at Swarthmore College, where I intend to major in Environmental Engineering.<span style="mso-spacerun: yes">  </span>Over the summer, I’m working on learning ChucK so I can create auditory data displays.<span style="mso-spacerun: yes">  </span>I’ve made decent progress so far, but I do have a couple questions.</font></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><o:p><font size="3" face="Calibri"> </font></o:p></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font size="3" face="Calibri">I’m struggling to import data from cmv or .m files, forcing me to enter values in by hand.<span style="mso-spacerun: yes">  </span>Does anyone have suggestions as to how I could circumvent this problem?</font></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><o:p><font size="3" face="Calibri"> </font></o:p></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font size="3" face="Calibri">Also, I plan to use a pair of quadraphonic headphones to interrogate spatial data with a joystick or track pad.<span style="mso-spacerun: yes">  </span>Has anybody tried using ChucK for this purpose before?<span style="mso-spacerun: yes">  </span>If so, I would be very interested to hear your thoughts.</font></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><o:p><font size="3" face="Calibri"> </font></o:p></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font size="3" face="Calibri">Thanks so much,</font></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font size="3" face="Calibri">Hayden</font></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font size="3" face="Calibri"><a href="mailto:hwdahmm@live.com">hwdahmm@live.com</a></font></p>                                         </div>
</div><div><div>_______________________________________________</div><div>chuck-users mailing list</div><div><a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a></div><div><a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>