title: How to get Processing to take one item of an array in a text file and make a decision on it
body: <p>I want to build a program that takes sound input and then creates an image out of different coloured circles out of this. I have a python backend, changing microphone input into integer values between -255 and 255, that is working fine. It saves all the data in real time to a txt file. My problem arises with how my Processing file deals with this information. I want it to take each item in the array as an integer and use it to make decisions, but I can't seem to make it happen. </p>
  
  <p>The code below does nothing, and I get no error code. I've tried printing the array as below, and that works, but I want it to accept the actual content of the array and use it.</p>
  
  <pre><code>void draw() {
   String[] data = loadStrings("filename");
   for(int i = 0; i&lt;data.length; i++) {
     int size = Math.abs(i);
     println(n);
     if(i &lt; -182) {
       fill(0, 89, 132);
       ellipse(size, size, size, size);
     } else if(i &lt; -109) { 
  </code></pre>
  
  <p>etc</p>
  
  <p>I expect it to create a circle of dimensions equal to that of the magnitude of the sound, and choose the colour based on the integer the python program has produced. The actual output is nothing.</p>